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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Richard Biener
<rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:35be043e4d2d47a99ff81b0651bc57566b4d11f9

commit r15-10172-g35be043e4d2d47a99ff81b0651bc57566b4d11f9
Author: Marek Polacek <pola...@redhat.com>
Date:   Wed Jun 25 10:29:49 2025 -0400

    c++: fix ICE with [[deprecated]] [PR120756]

    Here we end up with "error reporting routines re-entered" because
    resolve_nondeduced_context isn't passing complain to mark_used.

            PR c++/120756

    gcc/cp/ChangeLog:

            * pt.cc (resolve_nondeduced_context): Pass complain to mark_used.

    gcc/testsuite/ChangeLog:

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

    Reviewed-by: Jason Merrill <ja...@redhat.com>
    (cherry picked from commit a394cfb29adf603b72151d2423270db6516b05ed)

Reply via email to