URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.dg/] [overload/] [VLA.C] - Rev 301
Go to most recent revision | Compare with Previous | Blame | View Log
//Origin: kengole@us.ibm.com
//PR c++/2478
// G++ was rejecting this as it could not convert `int (*)[]' to `int (*)[0]'.
// Using the C99 VLA style arrays in a struct.
// { dg-do compile }
struct S {
int (*p)[];
} B;
void foo() {
int (*p)[];
B.p=p; // { dg-bogus "cannot convert" }
}
Go to most recent revision | Compare with Previous | Blame | View Log