[Bug c++/41425] switch with enums doesn't work
schwab at linux-m68k dot org
gcc-bugzilla@gcc.gnu.org
Mon Sep 21 14:25:00 GMT 2009
------- Comment #7 from schwab at linux-m68k dot org 2009-09-21 14:25 -------
(In reply to comment #3)
> As far as I can see, you are triggering undefined behavior.
There is a big difference between undefined and unspecified behaviour. With
unspecified behaviour the implementation must chose a consistent behaviour,
although it does not have to document which one it choses.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41425
More information about the Gcc-bugs
mailing list