http://llvm.org/bugs/show_bug.cgi?id=10169
Summary: Using address of global non-weak is tautologic
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
int foo;
int main(void)
{
return &foo ? 1 : 0;
}
gives a warning with GCC 4.5.
Possible exceptions are: section, weak or weakref attribute set. This warning
triggered at least one real bug in the NetBSD code base, so it is useful to
have.
--
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