https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116482
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Iain D Sandoe <ia...@gcc.gnu.org>: https://gcc.gnu.org/g:b2fa7e036e72fa0ed63df602cebd4005b078336e commit r14-11730-gb2fa7e036e72fa0ed63df602cebd4005b078336e Author: Iain Sandoe <i...@sandoe.co.uk> Date: Mon Aug 26 14:09:40 2024 +0100 c++, coroutines: The frame pointer is used in the helpers [PR116482]. We have a bogus warning about the coroutine state frame pointers being apparently unused in the resume and destroy functions. Fixed by making the parameters DECL_ARTIFICIAL. PR c++/116482 gcc/cp/ChangeLog: * coroutines.cc (coro_build_actor_or_destroy_function): Make the parameter decls DECL_ARTIFICIAL. gcc/testsuite/ChangeLog: * g++.dg/coroutines/pr116482.C: New test. Signed-off-by: Iain Sandoe <i...@sandoe.co.uk> (cherry picked from commit 8d6d6c864442a1cc987b3e6bcb1d903ceb975e4a)