This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/41425] switch with enums doesn't work
- From: "Woebbeking at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Sep 2009 12:53:58 -0000
- Subject: [Bug c++/41425] switch with enums doesn't work
- References: <bug-41425-8082@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from Woebbeking at web dot de 2009-09-21 12:53 -------
Paolo, but std::cout << static_cast<foo>(i); prints 5, so it's not the
conversion but the switch statement which is "broken".
Richard, if it's only truncation shouldn't case B be triggered?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41425