[Bug c++/88694] constexpr isn't captured correctly in lambda
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Aug 5 10:25:09 GMT 2021
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.
More information about the Gcc-bugs
mailing list