// PR c++/28595 template struct A { static const int i; }; template struct B { char c[A::i], d; // { dg-error "constant" } }; B<0> b;