[Bug c/51562] Expression evaluation with commas seems incorrect in gcc 4.5.2, 4.4.4
willus0 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Dec 15 13:27:00 GMT 2011
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 also true of the second statement, in which case the Numerical
Recipes code is simply poorly written?
More information about the Gcc-bugs
mailing list