https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120204
--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:b5f61a09c1ab3a45398333b50963e533a980b62d commit r16-506-gb5f61a09c1ab3a45398333b50963e533a980b62d Author: Jason Merrill <ja...@redhat.com> Date: Fri May 9 18:08:43 2025 -0400 c++: recursive instantiation diagnostic [PR120204] Here tsubst_baselink was returning error_mark_node silently despite tf_error; we need to actually give an error. PR c++/120204 gcc/cp/ChangeLog: * pt.cc (tsubst_baselink): Always error if lookup fails. gcc/testsuite/ChangeLog: * g++.dg/cpp1y/constexpr-recursion3.C: New test.