[Bug c/51834] -Wsequence-point fails when convoluted expressions with multiple side effects are used
schwab@linux-m68k.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 12 09:20:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51834
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |NEW
Last reconfirmed| |2012-01-12
Resolution|INVALID |
Ever Confirmed|0 |1
--- Comment #3 from Andreas Schwab <schwab@linux-m68k.org> 2012-01-12 09:20:10 UTC ---
(i++, i) + i is undefined. The sequence point only orders i++ and i inside the
parens, but not the operands of +. The third example is not undefined.
More information about the Gcc-bugs
mailing list