Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
vla2.C
blob: dcd384b265d940d93ad9319fe8f1e768d1c5b839 [
file
] [
log
] [
blame
]
// PR c++/28879
// { dg-do compile }
// { dg-options "" }
// { dg-require-effective-target alloca }
struct
A
{
static
int
i
;
int
j
;
};
template
<int>
void
foo
()
{
int
x
[
A
::
i
];
//int y[A().j];
}
void
bar
()
{
foo
<
6
>
();
}