https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109715
--- Comment #1 from GCC 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:46984fa259436ad50afb50a46a0a16e83bdf7172 commit r14-6594-g46984fa259436ad50afb50a46a0a16e83bdf7172 Author: Patrick Palka <ppa...@redhat.com> Date: Fri Dec 15 10:03:26 2023 -0500 c++: abi_tag attribute on templates [PR109715] We need to look through TEMPLATE_DECL when looking up the abi_tag attribute (as with other function/variable declaration attributes). PR c++/109715 gcc/cp/ChangeLog: * mangle.cc (get_abi_tags): Strip TEMPLATE_DECL before looking up the abi_tag attribute. gcc/testsuite/ChangeLog: * g++.dg/abi/abi-tag25.C: New test. * g++.dg/abi/abi-tag25a.C: New test.