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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to