Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
pr70610-2.C
blob: 3368a5e5d89259ca00c6c172e75f86f3de009c7f [
file
] [
log
] [
blame
]
// PR c++/70610
// { dg-do link }
struct
A
{
};
void
operator
+
(
const
A
&,
A
&);
void
operator
+
(
A
&,
const
A
&);
void
operator
+
(
const
A
&,
const
A
&)
{
}
template
<
typename
T
>
void
foo
()
{
A
()
+
A
();
}
int
main
()
{
foo
<int>
();
}