diff options
author | Jason Merrill <jason@redhat.com> | 2019-02-18 20:01:50 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2019-02-18 20:01:50 -0500 |
commit | e8b3c1bc3ba22dcf59b9c743f11d4cb2bc5d7792 (patch) | |
tree | 9c3cdaa34468fdc8816877ce803ffca053288deb /libstdc++-v3/include/experimental | |
parent | 44db22fc662edfc4e665f4c523fd75514dfb3be7 (diff) | |
download | gcc-e8b3c1bc3ba22dcf59b9c743f11d4cb2bc5d7792.tar.gz |
PR c++/89336 - multiple stores in constexpr stmt.
If we evaluate the RHS in the context of the LHS, that evaluation might
change the LHS in ways that mess with being able to store the value later.
So for assignment or scalar values, evaluate the RHS first.
* constexpr.c (cxx_eval_store_expression): Preevaluate scalar or
assigned value.
From-SVN: r269003
Diffstat (limited to 'libstdc++-v3/include/experimental')
0 files changed, 0 insertions, 0 deletions