This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25995] switch/case does not detect invalid enum values if default-case is used
- 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: 27 Jan 2006 13:57:31 -0000
- Subject: [Bug c++/25995] switch/case does not detect invalid enum values if default-case is used
- References: <bug-25995-12084@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-01-27 13:57 -------
Why do you think we should warn here? The enum is promoted to an int by the
C/C++ standard for switch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25995