GNOME Bugzilla – Bug 647097
Variable arguments do not work with constructor
Last modified: 2012-06-29 17:13:41 UTC
varargs don't work with a constructor. The code compiles fine but the results are unpredictable, from no arguments being found to garbage to segfault. The reason is that the C function that takes the varargs (the class_new() function) turns around and calls the class_construct() function. The stack in class_construct() is therefore not in a proper state for vararg processing. Vala 0.12.
*** This bug has been marked as a duplicate of bug 620675 ***