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> ();
}