// PR c++/114974 // { dg-do compile { target c++20 } } template struct A { template struct B { T2 t; }; }; A::B x{2}; // OK A::B y(2); // OK, previously rejected