http://llvm.org/bugs/show_bug.cgi?id=3575
Ryan Flynn <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Ryan Flynn <[email protected]> 2009-07-25 17:33:56 --- addressed in r77095, applies to any variable or function attribute appearing after a definition. $ echo "void foo(){} void foo() __attribute__((constructor));" | clang-cc -fsyntax-only <stdin>:1:19: warning: attribute declaration must precede definition void foo(){} void foo() __attribute__((constructor)); ^ <stdin>:1:6: note: previous definition is here void foo(){} void foo() __attribute__((constructor)); ^ 2 diagnostics generated. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
