repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
vla18.C
blob
31a1bb32f1af3e169dda9f8eed2dcfa615af0d9c
1
// PR c++/84767
2
// { dg-do compile }
3
// { dg-options "" }
4
5
int v[1][10];
6
7
struct A
8
{
9
A (int);
10
};
11
12
A::A (int i)
13
{
14
typedef int T[1][i];
15
T *x = (T *) v;
16
(*x)[0][0] = 0;
17
}
18
19
A a = 10;