[Bug c++/78929] Incorrect implementation of Refining Expression Evaluation Order for Idiomatic C++

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 26 06:58:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78929

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Hmm.

I don't think this is still defined according to that paper.

* Postfix expressions are evaluated from left to right. This includes functions
calls and member selection expressions.
* Assignment expressions are evaluated from right to left. This includes
compound assignments.
* Operands to shift operators are evaluated from left to right.


No where included here is binary operator like +.
That is: "++i + ++i" is still undefined as + is not included in the above list.


More information about the Gcc-bugs mailing list