constexpr-89336-2.C
1.23 KB
-
PR c++/89336 - multiple stores in constexpr stmt. · e8b3c1bc
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
Jason Merrill committed