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

           Summary: No warning when comparing differing enum types
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Created an attachment (id=6350)
 --> (http://llvm.org/bugs/attachment.cgi?id=6350)
example

At some point, clang started warning when passing arguments of one enum type
into a function taking a differing enum type. But, if enum types are going to
be considered different to this extent, then comparison of values/variables of
differing enum types should warn too (and don't as of r128001).

See the attached example that calls out a few constructs that should warn but
don't (certainly not exhaustive).

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