https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117259
--- Comment #17 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Jason Merrill <[email protected]>: https://gcc.gnu.org/g:6f7ab3dd3a2a5c5d2f92cab5c9738ef413563de8 commit r15-11657-g6f7ab3dd3a2a5c5d2f92cab5c9738ef413563de8 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. (cherry picked from commit 1948a863280464ed60168d170ab13580bb6bb51b)
