// PR c++/13969 struct B { static const int N=10; }; template struct X {}; template struct S { static const int N = B::N; X x; }; template class S;