☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
temporary6.C
☽
☼
gcc/testsuite/g++.old-deja/g++.jason/temporary6.C
code
plain
raw
1
// { dg-do assemble }
2
// Bug: the temporary from the default parameter to f2 is reused.
3
4
struct A {};
5
int f2 (int i, const A& ar = A());
6
void f (int i, int j = f2(1));
7
void g () { f (1); }
8
void h () { f (1); }