// PR c++/45976 template struct A { static const int value; template struct B { static const int value; }; }; template template const int A::template B::value = 0; // { dg-error "keyword .template" }