GNOME Bugzilla – Bug 543873
Position dependent delegate declaration
Last modified: 2009-01-17 22:19:26 UTC
// doesn't work public delegate void FooFunc (Bar bar); public class Bar { public void method (FooFunc f) { } static void main () { } } // works public class Bar { public void method (FooFunc f) { } static void main () { } } public delegate void FooFunc (Bar bar); -------------------------------------------------------------------- The first one produces a gcc error: In file included from delegatetest.c:2: delegatetest.h:10: Fehler: expected »)« before »*« token delegatetest.h:35: Fehler: expected declaration specifiers or »...« before »FooFunc« delegatetest.c:15: Fehler: expected declaration specifiers or »...« before »FooFunc« error: cc exited with status 256 Compilation failed: 1 error(s), 0 warning(s) -------------------------------------------------------------------- The delgate declaration should be position independent.
Confirming.
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 471244 ***