http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57813
--- Comment #9 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to Daniel Oertwig from comment #8) > Ok, so: Is this behaviour "part" of the language or a bug in gcc? > I could not find any documentation specifying that a sequence point should > be inbetween the (side-effect) evaluation of the function call and the > (value) evaluation of the assignment. http://c-faq.com/expr/seqpoints.html http://en.wikipedia.org/wiki/Sequence_point