aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2018-03-07 16:04:18 -0500
committerJason Merrill <jason@gcc.gnu.org>2018-03-07 16:04:18 -0500
commit68ad1bf7d08dc8189822d68f72610b6b917fc48d (patch)
tree8b0543de41823257bb455e6cdfe52c7a6d57af69 /gcc/cp/constexpr.c
parent335b7b5ad22ced0e2d4af7a3002a727caafbad02 (diff)
downloadgcc-68ad1bf7d08dc8189822d68f72610b6b917fc48d.zip
gcc-68ad1bf7d08dc8189822d68f72610b6b917fc48d.tar.gz
gcc-68ad1bf7d08dc8189822d68f72610b6b917fc48d.tar.bz2
lambda.c (is_capture_proxy_with_ref): Remove.
* lambda.c (is_capture_proxy_with_ref): Remove. * constexpr.c, expr.c, cp-tree.h, semantics.c: Adjust. From-SVN: r258341
Diffstat (limited to 'gcc/cp/constexpr.c')
-rw-r--r--gcc/cp/constexpr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/constexpr.c b/gcc/cp/constexpr.c
index bd53bfb..2c5a71f 100644
--- a/gcc/cp/constexpr.c
+++ b/gcc/cp/constexpr.c
@@ -5429,7 +5429,7 @@ potential_constant_expression_1 (tree t, bool want_rval, bool strict, bool now,
case VAR_DECL:
if (DECL_HAS_VALUE_EXPR_P (t))
{
- if (now && is_capture_proxy_with_ref (t))
+ if (now && is_normal_capture_proxy (t))
{
/* -- in a lambda-expression, a reference to this or to a
variable with automatic storage duration defined outside that