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

Reply via email to