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
* doc/extend.texi (Loop-Specific Pragmas): Document pragma GCC unroll.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
vla7.C
blob
5246f9c8c3887a45bdb775808473aaf50455d47f
1
// PR c++/40013
2
// { dg-options "" }
3
4
template <class T>
5
struct A
6
{
7
struct B
8
{
9
struct
10
{
11
int fn () { return 0; }
12
} b;
13
};
14
void test ();
15
};
16
17
template <class T>
18
void
19
A <T>::test ()
20
{
21
B a;
22
int vla[a.b.fn ()];
23
}
24
25
int
26
main ()
27
{
28
A <char> a;
29
a.test ();
30
}