aboutsummaryrefslogtreecommitdiff
path: root/libphobos
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2019-02-18 20:01:50 -0500
committerJason Merrill <jason@gcc.gnu.org>2019-02-18 20:01:50 -0500
commite8b3c1bc3ba22dcf59b9c743f11d4cb2bc5d7792 (patch)
tree9c3cdaa34468fdc8816877ce803ffca053288deb /libphobos
parent44db22fc662edfc4e665f4c523fd75514dfb3be7 (diff)
downloadgcc-e8b3c1bc3ba22dcf59b9c743f11d4cb2bc5d7792.zip
gcc-e8b3c1bc3ba22dcf59b9c743f11d4cb2bc5d7792.tar.gz
gcc-e8b3c1bc3ba22dcf59b9c743f11d4cb2bc5d7792.tar.bz2
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 'libphobos')
0 files changed, 0 insertions, 0 deletions