// PR c++/119981 // { dg-do compile { target c++20 } } template class P> struct mp_copy_if{}; template struct g { template struct fn{}; }; template void test3() { mp_copy_if::template fn> b; } template void test3();