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:
parent
3057cbb3d8
commit
58688a4ec0
2 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue