This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/25995] switch/case does not detect invalid enum values if default-case is used



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]