// PR c++/97034 // { dg-do compile { target c++20 } } namespace N { template struct S { template S(T, U); }; } // namespace N template struct E { template struct M { template struct G { T t; }; void fn() { G{N::S{'a', 1}}; } }; }; void g () { E<1>::M m; m.fn (); }