From: Jason Merrill Date: Mon, 21 Dec 2015 03:04:08 +0000 (-0500) Subject: re PR c++/67411 (internal compiler error: in tsubst_copy, at cp/pt.c:13473) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58688a4ec04a2e3d73e2a381f0003f888ad305d1;p=gcc.git 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 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e7adad38228..1dd533efa79 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 2015-12-20 Jason Merrill + 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. diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 1e4282a8067..e9c9ffc85f2 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -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)