PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / overload / VLA.C
blob0c748f50c7d9e06d9a1a3d855d8ff5b91a0a06f6
1 //Origin: kengole@us.ibm.com
3 //PR c++/2478
4 // G++ was rejecting this as it could not convert `int (*)[]' to `int (*)[0]'.
5 // Using the C99 VLA style arrays in a struct.
7 // { dg-do compile }
9 struct S {
10   int (*p)[];
11 } B;
13 void foo() {
14   int (*p)[];
15   B.p=p;  // { dg-bogus "cannot convert" }