[Bug target/35634] [avr] result of char promotion comes out of CHAR_MIN/MAX
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Mar 19 07:08:00 GMT 2008
------- Comment #2 from pinskia at gcc dot gnu dot org 2008-03-19 07:07 -------
As I already mentioned this is undefined code, overflow for signed integeral
types is undefined. char is a weird type as it is considered one of the
character types but it is still an integeral type. Also it is weird that it
defualt to either signed or unsigned (implementation defined, in GCC's case it
is ABI defined). For AVR, it defaults to signed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35634
More information about the Gcc-bugs
mailing list