repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
overload
/
VLA.C
blob
0c748f50c7d9e06d9a1a3d855d8ff5b91a0a06f6
1
//Origin: kengole@us.ibm.com
2
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.
6
7
// { dg-do compile }
8
9
struct S {
10
int (*p)[];
11
} B;
12
13
void foo() {
14
int (*p)[];
15
B.p=p; // { dg-bogus "cannot convert" }
16
}