1 // PR c++/70610 2 // { dg-do link } 3 4 struct A { }; 5 6 void operator+ (const A &, A &); 7 void operator+ (A &, const A &); 8 void operator+ (const A &, const A &) { } 9 10 template <typename T> 11 void foo()12foo () 13 { 14 A () + A (); 15 } 16 17 int main()18main () 19 { 20 foo<int> (); 21 } 22