diff options
author | Jason Merrill <jason@redhat.com> | 2017-09-28 15:39:32 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2017-09-28 15:39:32 -0400 |
commit | 697a7a575de01835b3941e6b6d25b940033301d5 (patch) | |
tree | c8985e016bcb5b8322adb1fc5c653500fe51f82c /gcc/cp/call.c | |
parent | 6ad0466f585aff427339b66e2228ac99d1d595bf (diff) | |
download | gcc-697a7a575de01835b3941e6b6d25b940033301d5.zip gcc-697a7a575de01835b3941e6b6d25b940033301d5.tar.gz gcc-697a7a575de01835b3941e6b6d25b940033301d5.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r-- | gcc/cp/call.c | 2 |
1 files changed, 1 insertions, 1 deletions
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<tree, va_gc> **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); } } |