GNOME Bugzilla – Bug 515423
register & other C reserved words
Last modified: 2008-02-09 15:21:12 UTC
Please describe the problem: valac doesn't complain or work-around for methods named "register" (and possibly other C reserved words - non existing in vala), but generated c compilation fails. Steps to reproduce: using GLib; class Foo : GLib.Object { public string register() { return "Foo\n"; } static int main (string[] args) { var foo = new Foo(); foo.register(); return 0; } } Actual results: Expected results: Does this happen every time? Other information:
This sample code doesn't trigger any issue as register is not used as identifier in the generated C code. However, the bug is still there.
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 515225 ***