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