Sign in
gnu
/
gcc
/
b1143e51359be3b1151d892970f43ae67dee64d2
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
temporary6.C
blob: ce6a92e586ad633bbbf2e8a7bd328c95b9cecf10 [
file
] [
log
] [
blame
]
// Bug: the temporary from the default parameter to f2 is reused.
// Build don't link:
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
);
}