https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88694
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- Fixed by r11-88: 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. We could add the testcase from comment 4.