re PR c++/67411 (internal compiler error: in tsubst_copy, at cp/pt.c:13473)

PR c++/67411
	* decl2.c (decl_maybe_constant_var_p): Use DECL_HAS_VALUE_EXPR_P.

From-SVN: r231869
This commit is contained in:
Jason Merrill 2015-12-20 22:04:08 -05:00 committed by Jason Merrill
parent 3057cbb3d8
commit 58688a4ec0
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2015-12-20 Jason Merrill <jason@redhat.com>
PR c++/67411
* decl2.c (decl_maybe_constant_var_p): Use DECL_HAS_VALUE_EXPR_P.
PR c++/67411
* lambda.c (generic_lambda_fn_p): Split out from...
(maybe_add_lambda_conv_op): ...here.

View file

@ -4222,7 +4222,7 @@ decl_maybe_constant_var_p (tree decl)
return false;
if (DECL_DECLARED_CONSTEXPR_P (decl))
return true;
if (DECL_VALUE_EXPR (decl))
if (DECL_HAS_VALUE_EXPR_P (decl))
/* A proxy isn't constant. */
return false;
return (CP_TYPE_CONST_NON_VOLATILE_P (type)