[LLVMbugs] [Bug 10169] New: Using address of global non-weak is tautologic

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 22 05:05:48 PDT 2011


           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: unassignedclangbugs at nondot.org
        ReportedBy: joerg at NetBSD.org
                CC: llvmbugs at cs.uiuc.edu

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

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