diff options
author | Nathan Sidwell <nathan@acm.org> | 2020-05-05 07:47:13 -0700 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2020-05-05 07:48:35 -0700 |
commit | 733195e367d84914cf9a35c5c78901c973f4159a (patch) | |
tree | 2c2b615bc3ce2ffbf6629897dd74a10dba105b61 /gcc/cp/pt.c | |
parent | d44f14ccef831d90feb57fab56bc3389d543ffdd (diff) | |
download | gcc-733195e367d84914cf9a35c5c78901c973f4159a.zip gcc-733195e367d84914cf9a35c5c78901c973f4159a.tar.gz gcc-733195e367d84914cf9a35c5c78901c973f4159a.tar.bz2 |
c++: Avoid inconsistency in lambda fn's this pointer name [pr94807]
* coroutines.cc (morph_fn_to_coro): Just check for
closure_identifier.
* pt.c (tsubst_function_decl): Update lambda fn's this_ptr name.
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r-- | gcc/cp/pt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 61cb75b..ff8391c 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -13821,6 +13821,7 @@ tsubst_function_decl (tree t, tree args, tsubst_flags_t complain, if (closure) { tree tparm = build_this_parm (r, closure, type_memfn_quals (type)); + DECL_NAME (tparm) = closure_identifier; DECL_CHAIN (tparm) = parms; parms = tparm; } |