re PR c++/67411 (internal compiler error: in tsubst_copy, at cp/pt.c:13473)
authorJason Merrill <jason@redhat.com>
Mon, 21 Dec 2015 03:04:08 +0000 (22:04 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 21 Dec 2015 03:04:08 +0000 (22:04 -0500)
PR c++/67411
* decl2.c (decl_maybe_constant_var_p): Use DECL_HAS_VALUE_EXPR_P.

From-SVN: r231869

gcc/cp/ChangeLog
gcc/cp/decl2.c

index e7adad382282b12d6752bef32d03e677b1371529..1dd533efa79cb503134a7a2dcf983e18586edce8 100644 (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.
index 1e4282a806701937f2d5c1b3ec91c1186918e1c1..e9c9ffc85f220d48b7061fb8e5cbe0db3ba94d66 100644 (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)