http://llvm.org/bugs/show_bug.cgi?id=3264
Summary: Functions attributes are only in the last declaration.
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: AST
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Here a little example:
----<
void f(char* p)
__attribute__((nonnull (1)));
void f();
void f(char* p) {}
---->
After calculating the whole AST, the non null attribute is only in the last
declaration.
It should be in all the declarations following the attribute definition.
--
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