From 697a7a575de01835b3941e6b6d25b940033301d5 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 28 Sep 2017 15:39:32 -0400 Subject: Small lambda fixes. * call.c (build_special_member_call): Use the return value of mark_lvalue_use. * decl.c (compute_array_index_type): Likewise. * parser.c (cp_parser_oacc_wait_list): Likewise. * lambda.c (is_normal_capture_proxy): Handle *this capture. (add_capture): Clarify internal_error message. From-SVN: r253264 --- gcc/cp/call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cp/call.c') diff --git a/gcc/cp/call.c b/gcc/cp/call.c index e83cf99..99a7b77 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -8845,7 +8845,7 @@ build_special_member_call (tree instance, tree name, vec **args, && (flags & LOOKUP_DELEGATING_CONS)) check_self_delegation (arg); /* Avoid change of behavior on Wunused-var-2.C. */ - mark_lvalue_use (instance); + instance = mark_lvalue_use (instance); return build2 (INIT_EXPR, class_type, instance, arg); } } -- cgit v1.1