1 // PR c++/28879 2 // { dg-options "" } 3 // { dg-require-effective-target alloca } 4 5 struct A 6 { 7 int i; AA8 A(): i(1) {} 9 }; 10 foo()11 template<int> void foo() 12 { 13 int x[A().i]; 14 } 15 f()16 void f() 17 { 18 foo<1>(); 19 } 20