1// { dg-do assemble  }
2// Bug: the temporary from the default parameter to f2 is reused.
3
4struct A {};
5int f2 (int i, const A& ar = A());
6void f (int i, int j = f2(1));
7void g () { f (1); }
8void h () { f (1); }
9