1// PR c++/28595 2 3template<int> struct A 4{ 5 static const int i; 6}; 7 8template<int N> struct B 9{ 10 char c[A<N>::i], d; // { dg-error "constant" } 11}; 12 13B<0> b; 14