GNOME Bugzilla – Bug 609440
f().length compiles to nothing
Last modified: 2010-03-26 19:16:26 UTC
Version: vala-0.7.10. Code to reproduce: _________________________________ int[] f() { return new int[10]; } void main() { stdout.printf("%d\n", f().length); } _________________________________ This does not call f() at all and prints a random number. C code of main() looks like this: _________________________________ gint _tmp0_; fprintf (stdout, "%d\n", _tmp0_); _________________________________
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 602208 ***