PR c++/64727
* constexpr.c (cxx_eval_constant_expression): Allow for lvalue use
of CONST_DECL.
From-SVN: r220041
+2015-01-23 Jason Merrill <jason@redhat.com>
+
+ PR c++/64727
+ * constexpr.c (cxx_eval_constant_expression): Allow for lvalue use
+ of CONST_DECL.
+
2015-01-21 Jason Merrill <jason@redhat.com>
PR c++/64603
return (*ctx->values->get (t));
case VAR_DECL:
+ case CONST_DECL:
+ /* We used to not check lval for CONST_DECL, but darwin.c uses
+ CONST_DECL for aggregate constants. */
if (lval)
return t;
- /* else fall through. */
- case CONST_DECL:
if (ctx->strict)
r = decl_really_constant_value (t);
else