This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/71110] label "caseN" should be warned about
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 13 May 2016 21:02:31 +0000
- Subject: [Bug c/71110] label "caseN" should be warned about
- Auto-submitted: auto-generated
- References: <bug-71110-4 at http dot gcc dot gnu dot org/bugzilla/>
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.