https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120756
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Marek Polacek <mpola...@gcc.gnu.org>: https://gcc.gnu.org/g:a394cfb29adf603b72151d2423270db6516b05ed commit r16-1754-ga394cfb29adf603b72151d2423270db6516b05ed 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>