http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51562
--- Comment #4 from willus0 at hotmail dot com 2011-12-16 14:01:31 UTC ---
Thanks Richard and Manuel for prompting me to learn more about sequence points.
After 25 years of C programming, I've learned something new. A couple of
links I
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51562
--- Comment #2 from willus0 at hotmail dot com 2011-12-15 13:16:37 UTC ---
(In reply to comment #1)
> (x=1,x)+(x=2,x)
>
> is invoking undefined behavior as there is no sequence point inbetween
> the two assignments to x.
Is the same
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51562
Bug #: 51562
Summary: Expression evaluation with commas seems incorrect in
gcc 4.5.2, 4.4.4
Classification: Unclassified
Product: gcc
Version: 4.5.2
Status: UNCONFIRM