1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 3 namespace DeduceVsMember { 4 template<typename T> 5 struct X { 6 template<typename U> 7 int &operator==(const U& other) const; 8 }; 9 10 template<typename T, typename U> 11 float &operator==(const T&, const X<U>&); 12 13 void test(X<int> xi, X<float> xf) { 14 float& ir = (xi == xf); 15 } 16 } 17