At this point r == t, but it makes more sense to refer to t like all the
other cases do.
gcc/cp/ChangeLog:
* constexpr.cc (cxx_eval_constant_expression): Pass t to get_value.
Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
case PARM_DECL:
if (lval && !TYPE_REF_P (TREE_TYPE (t)))
/* glvalue use. */;
- else if (tree v = ctx->global->get_value (r))
+ else if (tree v = ctx->global->get_value (t))
r = v;
else if (lval)
/* Defer in case this is only used for its type. */;