https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117259
--- Comment #15 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Jason Merrill <[email protected]>: https://gcc.gnu.org/g:1948a863280464ed60168d170ab13580bb6bb51b commit r17-2062-g1948a863280464ed60168d170ab13580bb6bb51b Author: Jason Merrill <[email protected]> Date: Wed Jul 1 11:28:18 2026 -0400 c++: co_await and ->* [PR121094] The use of TARGET_EXPR in get_member_function_from_ptrfunc since r13-9563 didn't match the expectations of flatten_await_stmt; the latter isn't prepared to handle reuse of a TARGET_EXPR. Most places in the front-end only reuse the TARGET_EXPR_SLOT, not the whole TARGET_EXPR, but that's awkward for get_member_function_from_ptrfunc, so let's make it work. PR c++/121094 PR c++/117259 gcc/cp/ChangeLog: * coroutines.cc (replace_proxy): Handle TARGET_EXPR from. (flatten_await_stmt): Pass it. gcc/testsuite/ChangeLog: * g++.dg/coroutines/pmf-121094.C: New test.
