[Vala] valac crash on recursive struct usage



Hi,

It seems valac crashes on recursive struct usage, due to stack
overflow when trying to compile the following code:

namespace test {
   public struct Test {
       Test? test;
   }

   public struct Test2 {
       Test test;
       int i;
   }

   static void main () {
       var l = new List<Test2?> ();
       stdout.printf ("%d", (int)l.length ());
   }
}

Is this a new issue or something that has been fixed since 0.7.10 ?

--tkk



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]