[Bug c++/40335] The implement of Switch statment is against with C++ standard
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Jun 4 09:04:00 GMT 2009
------- Comment #1 from rguenth at gcc dot gnu dot org 2009-06-04 09:04 -------
Integral promotion is performed on the switch argument, thus signed char -1
is sign-extended to int -1. You probably want (unsigned char) i instead.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
Summary|The implement of Switch |The implement of Switch
|statment is against with C++|statment is against with C++
|standard |standard
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40335
More information about the Gcc-bugs
mailing list