This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/51562] Expression evaluation with commas seems incorrect in gcc 4.5.2, 4.4.4
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 15 Dec 2011 09:57:32 +0000
- Subject: [Bug c/51562] Expression evaluation with commas seems incorrect in gcc 4.5.2, 4.4.4
- Auto-submitted: auto-generated
- References: <bug-51562-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51562
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-15 09:57:32 UTC ---
(x=1,x)+(x=2,x)
is invoking undefined behavior as there is no sequence point inbetween
the two assignments to x.