This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/71110] label "caseN" should be warned about


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]