1 // PR c++/45976
2 
3 template<int a>
4 struct A {
5     static const int value;
6 
7     template<int b>
8     struct B {
9         static const int value;
10     };
11 };
12 
13 template<int a>
14 template<int b>
15 const int A<a>::template B<b>::value = 0; // { dg-error "keyword .template" }
16