[LLVMbugs] [Bug 4580] New: warn on attribute used applied to local decl
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sat Jul 18 22:51:19 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4580
Summary: warn on attribute used applied to local decl
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
I think that attribute used applied to a local decl is meaningless, and should
probably warn about it.
--
int f2() {
return 0;
{
static int x[100] __attribute__((used));
return x[1];
}
}
--
--
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