[LLVMbugs] [Bug 3575] warn when adding attributes following definition
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sat Jul 25 15:33:56 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=3575
Ryan Flynn <parseerror at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |parseerror at gmail.com
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Ryan Flynn <parseerror at gmail.com> 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.
More information about the llvm-bugs
mailing list