URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
//Origin: kengole@us.ibm.com
|
//Origin: kengole@us.ibm.com
|
|
|
//PR c++/2478
|
//PR c++/2478
|
// G++ was rejecting this as it could not convert `int (*)[]' to `int (*)[0]'.
|
// G++ was rejecting this as it could not convert `int (*)[]' to `int (*)[0]'.
|
// Using the C99 VLA style arrays in a struct.
|
// Using the C99 VLA style arrays in a struct.
|
|
|
// { dg-do compile }
|
// { dg-do compile }
|
|
|
struct S {
|
struct S {
|
int (*p)[];
|
int (*p)[];
|
} B;
|
} B;
|
|
|
void foo() {
|
void foo() {
|
int (*p)[];
|
int (*p)[];
|
B.p=p; // { dg-bogus "cannot convert" }
|
B.p=p; // { dg-bogus "cannot convert" }
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.