https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193056
Mark Johnston <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Triage |Open --- Comment #1 from Mark Johnston <[email protected]> --- This can be fixed quite easily by moving the pragma to after the definition of go() in tst.weak2.c. That is, the following compiles: static void go(int a) { ... } #pragma weak _go = go But note that tst.weak1.c is identical except for the fact that go() is not local, and it compiles without errors. So this could be a bug in clang, I'm not sure. Note that the following also compiles: void _go(int a) __attribute__((weak, alias("go"))); static void go(int a) { ... } -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "[email protected]"
