[Bug c/35634] [avr] result of char promotion comes out of CHAR_MIN/MAX

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Mar 19 10:27:00 GMT 2008



------- Comment #5 from rguenth at gcc dot gnu dot org  2008-03-19 10:26 -------
To quote the standard (6.5.4.1/2):

"The expression ++E is equivalent to (E+=1).  See the discussions of additive
operators and compound assignment for information on constraints, types,
side effects, and CONVERSIONS and the effects of operations on pointers"

emphasise mine, 6.5.6/4 then of course says

"If both operands have arithmetic type, the usual arithmetic conversions are
performed on them."


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35634



More information about the Gcc-bugs mailing list