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