1 // PR c++/31038
2 // { dg-options "" }
3 
foo()4 template<int> void foo()
5 {
6   int i = (int) { 0 };
7 }
8 
9 template void foo<0>();
10 int f();
11 
bar()12 template<int> void bar()
13 {
14   int i = (int) { f() };
15 }
16 
17 template void bar<0>();
18