// Origin: PR c++/43327 // { dg-do compile } template struct A { template struct B; template struct B<_N, _T::m> { static void f(); }; }; struct C { static int m; }; void m() { A::B<1, 4>::f(); // { dg-error "incomplete type|not a valid" } } int C::m = 4;