On 12/16/2016 07:23 AM, Nathan Sidwell wrote:
when cxx_eval_constant_expression finds a nonconstant expression it returns a TREE without TREE_CONSTANT set. else if (non_constant_p && TREE_CONSTANT (r)) { /* This isn't actually constant, so unset TREE_CONSTANT. */ ... else // THIS CASE HAPPENS r = build_nop (TREE_TYPE (r), r); TREE_CONSTANT (r) = false; }
Hmm, we shouldn't get here for an expression we're going to use as an lvalue.
Jason