aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/array15.C
blob: b1e047d1d0053be3e21737cb57de7633f4a1f68a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/28595

template<int> struct A
{
  static const int i;
};

template<int N> struct B
{
  char c[A<N>::i], d; // { dg-error "constant" }
};

B<0> b;