[LLVMbugs] [Bug 2954] New: Type of enumerators is wrong in C++

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Oct 26 06:58:54 PDT 2008


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: unassignedbugs at nondot.org
        ReportedBy: dgregor at apple.com
                CC: llvmbugs at cs.uiuc.edu, sebastian.redl at getdesigned.at


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.



More information about the llvm-bugs mailing list