This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/78929] Incorrect implementation of Refining Expression Evaluation Order for Idiomatic C++
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 26 Dec 2016 06:57:57 +0000
- Subject: [Bug c++/78929] Incorrect implementation of Refining Expression Evaluation Order for Idiomatic C++
- Auto-submitted: auto-generated
- References: <bug-78929-4@http.gcc.gnu.org/bugzilla/>
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.