[LLVMbugs] [Bug 6495] New: extern const file-level variable with initializer raises warning

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 4 12:27:05 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=6495

           Summary: extern const file-level variable with initializer
                    raises warning
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: dlowe at bitmuse.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


This should be a warning in C, where a const file-level variable is externally
bound.  In C++, however, it is internally bound by default.  You're supposed to
use the extern keyword to bind it externally.  Doing so in clang, however,
generates the warning.

-- 
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