This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/51834] -Wsequence-point fails when convoluted expressions with multiple side effects are used
- From: "schwab at linux-m68k dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Jan 2012 09:20:10 +0000
- Subject: [Bug c/51834] -Wsequence-point fails when convoluted expressions with multiple side effects are used
- Auto-submitted: auto-generated
- References: <bug-51834-4@http.gcc.gnu.org/bugzilla/>
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.