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

             Bug #: 11986
           Summary: Unexpected behavior from -Wswitch-enum
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


-Wswitch-enum emits a warning if cases are not handled in a switch even when 
there is a default clause which explicitly means "do this for every case not 
handled in the switch".  I think that, like g++, the switch-enum warning should 
only be emitted for unhandled case clauses if there is no default case.

If you agree, feel free to assign this bug to me as I'm happy to fix 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