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

           Summary: Type of enumerators is wrong in C++
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected], [EMAIL PROTECTED]


The type of an enum constant expression is currently the underlying type
of the enum (usually int). While this is correct in C, it's incorrect in
C++ and breaks overload resolution. The type of the enumerators should be the
type of the enumeration once the enumeration has been defined.


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