https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116482

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain D Sandoe <ia...@gcc.gnu.org>:

https://gcc.gnu.org/g:8d6d6c864442a1cc987b3e6bcb1d903ceb975e4a

commit r15-3211-g8d6d6c864442a1cc987b3e6bcb1d903ceb975e4a
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>

Reply via email to