This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19941] No warning emitted for nested switch statements.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Feb 2005 18:50:06 -0000
- Subject: [Bug c++/19941] No warning emitted for nested switch statements.
- References: <20050213183834.19941.dhruvbird@yahoo.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-13 18:50 -------
Labels inside a switch statement is legal code and it is hard to dect that you had ment to use default
instead of what you put in the label. (default is just a special label really).
Use -Wunreachable-code if you want to dect unreachable code.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19941