http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50425
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-09-15 18:21:31 UTC --- This is not a good place to learn C/C++ really. But anyways the order of evulating of the operands of + is not specified and could happen in either order as there is no sequence point. Read http://c-faq.com/expr/seqpoints.html .