--- Comment #3 from roger at eyesopen dot com 2006-07-08 14:31 ---
I tried fixing this bug, only to discover why things are exactly as they are.
The short answer is that GCC will warn about the example code if you
specify the -Wswitch-enum command line option. Specifying -Wall implies
--- 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
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-01-27 14:03 ---
Never mind, I see what you mean now, I was too tired when I first read this
bug.
Confirmed. the default label is causing many things to be ignored.
--
pinskia at gcc dot gnu dot org changed:
What