This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/35634] [avr] result of char promotion comes out of CHAR_MIN/MAX
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Mar 2008 10:26:53 -0000
- Subject: [Bug c/35634] [avr] result of char promotion comes out of CHAR_MIN/MAX
- References: <bug-35634-6291@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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