// PR c++/97297 // { dg-do compile { target c++20 } } template struct S { int simple(T::type); template int member(U::type); }; template int S::simple(T::type) { return 1; } template template int S::member(U::type) { return 2; }