aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/ctor8.C
blob: 859bded41971694cec9576487cb21c1dfb1ac2a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/28711
// { dg-do compile }
// { dg-options "" }

template<int> struct A
{
  int x[1][1];
  A() : x((int[1][]){{0}}) {}  // { dg-error "except the first" }
};

A<0> a;