[Bug c++/79167] assignment operator LHS side-effect sequenced before RHS computation
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jan 20 16:49:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79167
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to ronen from comment #0)
> According to http://en.cppreference.com/w/cpp/language/eval_order,
>
> 20) In every simple assignment expression E1=E2 and every compound
> assignment expression E1@=E2, every value computation and side-effect of E2
> is sequenced before every value computation and side effect of E1
Items 14-21 are marked "since C++17"
GCC 5 was released two years ago, long before that change was made to the C++17
draft, and it has quite minimal C++17 support.
More information about the Gcc-bugs
mailing list