aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/expr.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2018-01-18 11:53:50 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2018-01-18 11:53:50 +0000
commit5a752e3f7920c1d72c130096e0e0fea023cf8ffc (patch)
tree3046a3abdcbe7ee5a733086c11fc73ee9929a57c /gcc/cp/expr.c
parent7467ab4232babb1ac9b906fe91abb9226464b884 (diff)
downloadgcc-5a752e3f7920c1d72c130096e0e0fea023cf8ffc.zip
gcc-5a752e3f7920c1d72c130096e0e0fea023cf8ffc.tar.gz
gcc-5a752e3f7920c1d72c130096e0e0fea023cf8ffc.tar.bz2
PR c++/83160] local ref to capture
https://gcc.gnu.org/ml/gcc-patches/2018-01/msg01638.html PR c++/83160 * cp-tree.h (mark_use): Declare. * expr.c (mark_use): Make extern. * call.c (direct_reference_binding): Set inner conv's rvaluedness_matches_p, if it is an identity. (convert_like_real): Mark lvalue or rvalue use for identity as rvaledness_matches_p demands. PR c++/83160 * g++.dg/cpp0x/pr83160.C: New. From-SVN: r256842
Diffstat (limited to 'gcc/cp/expr.c')
-rw-r--r--gcc/cp/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c
index 49a17a6..2e67986 100644
--- a/gcc/cp/expr.c
+++ b/gcc/cp/expr.c
@@ -89,7 +89,7 @@ cplus_expand_constant (tree cst)
/* We've seen an actual use of EXPR. Possibly replace an outer variable
reference inside with its constant value or a lambda capture. */
-static tree
+tree
mark_use (tree expr, bool rvalue_p, bool read_p,
location_t loc /* = UNKNOWN_LOCATION */,
bool reject_builtin /* = true */)