1f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify %s 2f4a2713aSLionel Sambuc // XFAIL: * 3*0a6a1f1dSLionel Sambuc // FIXME: This is PR7655 4*0a6a1f1dSLionel Sambuc 5f4a2713aSLionel Sambuc struct X { 6f4a2713aSLionel Sambuc template<typename T> X(T); 7f4a2713aSLionel Sambuc X(int, int); 8f4a2713aSLionel Sambuc 9f4a2713aSLionel Sambuc X operator()(int, int) const; 10f4a2713aSLionel Sambuc }; 11f4a2713aSLionel Sambuc 12f4a2713aSLionel Sambuc template<typename T, typename U> struct Y { }; 13f4a2713aSLionel Sambuc 14f4a2713aSLionel Sambuc X *x; f()15f4a2713aSLionel Sambucvoid f() { 16f4a2713aSLionel Sambuc int y = 0; 17f4a2713aSLionel Sambuc X (*x)(int(y), int(y)) = Y<int, float>(), ++y; 18f4a2713aSLionel Sambuc } 19