1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// Special g++ Options: -fguiding-decls struct A { friend int operator== (const A&, const A&); A (int) { } }; template <class T> int operator== (const T&, const T&) { return 0; } main () { A a (1); return a == 1; }