Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
temporary6.C
blob: dc660e8fcf46dece39bd528891682af96b96b653 [
file
] [
log
] [
blame
]
// { dg-do assemble }
// Bug: the temporary from the default parameter to f2 is reused.
struct
A
{};
int
f2
(
int
i
,
const
A
&
ar
=
A
());
void
f
(
int
i
,
int
j
=
f2
(
1
));
void
g
()
{
f
(
1
);
}
void
h
()
{
f
(
1
);
}