https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121094
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-16 branch has been updated by Jason Merrill <[email protected]>: https://gcc.gnu.org/g:0c80a308bfa5ed87570f047fdbc0d44c7415f15e commit r16-9217-g0c80a308bfa5ed87570f047fdbc0d44c7415f15e Author: Jason Merrill <[email protected]> Date: Thu Jul 2 17:54:21 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. (cherry picked from commit 1948a863280464ed60168d170ab13580bb6bb51b)
