// { dg-do compile } // Contributed by: Giovanni Bajo // PR c++/14448: Fold constant initializers in templates template struct A { A(); }; template void foo(T) { static const int n=1+1; A a; } void bar() { foo(0); }