https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71110

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-05-13
            Summary|Failure to detect syntax    |label "caseN" should be
                   |error with Switch Case      |warned about
                   |statement.                  |
     Ever confirmed|0                           |1
           Severity|minor                       |enhancement

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
case2: is a label.  There is no syntax error here because this is very valid C.
 We should most likely warn about it though or at least have an option to warn
about it.  Confirmed for the warning.

Reply via email to