https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110524
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>: https://gcc.gnu.org/g:97ceaa110e1607ec8f4f1223200868e1642f3cc7 commit r14-2538-g97ceaa110e1607ec8f4f1223200868e1642f3cc7 Author: Patrick Palka <ppa...@redhat.com> Date: Sat Jul 15 09:47:36 2023 -0400 c++: mangling template-id of unknown template [PR110524] This fixes a crash when mangling an ADL-enabled call to a template-id naming an unknown template (as per P0846R0). PR c++/110524 gcc/cp/ChangeLog: * mangle.cc (write_expression): Handle TEMPLATE_ID_EXPR whose template is already an IDENTIFIER_NODE. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/fn-template26.C: New test.