[LLVMbugs] [Bug 11986] New: Unexpected behavior from -Wswitch-enum

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 11 18:56:15 PST 2012


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: unassignedclangbugs at nondot.org
        ReportedBy: johnw at boostpro.com
                CC: llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list