repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[gcn] install.texi: Update for new ISA targets and their requirements
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
vla2.C
blob
dcd384b265d940d93ad9319fe8f1e768d1c5b839
1
// PR c++/28879
2
// { dg-do compile }
3
// { dg-options "" }
4
// { dg-require-effective-target alloca }
5
6
struct A
7
{
8
static int i;
9
int j;
10
};
11
12
template<int> void foo ()
13
{
14
int x[A::i];
15
//int y[A().j];
16
}
17
18
void bar ()
19
{
20
foo<6> ();
21
}