https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69621
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Here is a reduced testcase: inline namespace [[gnu::abi_tag("mytag")]] a { class string{}; } template<string&> struct S { static void f(); }; extern string s; void g() { S<s>::f(); }