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

           Summary: certain enum constants have wrong type inside an enum
                    definition
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Testcase:
enum a{a=1u,b=(a-2)/2};
int checkb[b==0?1:-1];

See also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30260 .

Split off from bug 3173, so we don't lose track of it.


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