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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Jakub Jelinek
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:3ae40fa0add409282ece0ccaaa615bfa91f374d4

commit r14-10767-g3ae40fa0add409282ece0ccaaa615bfa91f374d4
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Fri Sep 13 16:13:01 2024 +0200

    c++: Don't emit deprecated/unavailable attribute diagnostics when creating
cdtor thunks [PR116678]

    Another spot where we mark_used a function (in this case ctor or dtor)
    even when it is just artificially used inside of thunks (emitted on mingw
    with -Os for the testcase).

    2024-09-13  Jakub Jelinek  <ja...@redhat.com>

            PR c++/116678
            * optimize.cc: Include decl.h.
            (maybe_thunk_body): Temporarily change deprecated_state to
            UNAVAILABLE_DEPRECATED_SUPPRESS.

            * g++.dg/warn/deprecated-20.C: New test.

    (cherry picked from commit b7b67732e20217196f2a13a10fc3df4605b2b2ab)

Reply via email to