summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/error41.C
blob: c92b8497aff2c791eda1045cd1cc2e8ff1d92727 (plain)
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" }
};