OSDN Git Service

2014-02-26 Fabien Chene <fabien@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / ctor8.C
1 // PR c++/28711
2 // { dg-do compile }
3 // { dg-options "" }
4
5 template<int> struct A
6 {
7   int x[1][1];
8   A() : x((int[1][]){{0}}) {}  // { dg-error "except the first" }
9 };
10
11 A<0> a;