// PR c++/31038 // { dg-options "" } template void foo() { int i = (int) { 0 }; } template void foo<0>(); int f(); template void bar() { int i = (int) { f() }; } template void bar<0>();