summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/complit1.C
blob: 218a7c92908306d1570d39cdd8a935bed31a55bf (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-options "" }

template <int D> struct C {
  int d[3];
  C();
};

template<int D>
C<D>::C() : d((int[]){1,2,3}) {} // { dg-error "array" }

template class C<1>;