http://llvm.org/bugs/show_bug.cgi?id=3982
Summary: reject attribute weak on internal variables
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
--
ddun...@67-218-103-134:tmp$ cat x.c
static int x __attribute__((weak));
ddun...@67-218-103-134:tmp$ clang -fsyntax-only x.c
ddun...@67-218-103-134:tmp$ gcc -fsyntax-only x.c
x.c:1: error: weak declaration of 'x' must be public
--
--
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