1 2 3 4 5 6 7 8 9 10 11 12
// PR c++/40370 // { dg-do compile } struct A { static int i; }; template <int> struct B { int x[A::i]; // { dg-error "array bound is not an integer constant" } };