1*67e74705SXin Li // RUN: %clang_cc1 -fsyntax-only -verify %s 2*67e74705SXin Li // PR7837 3*67e74705SXin Li 4*67e74705SXin Li template<class T> struct C1 { void operator()(T); }; 5*67e74705SXin Li template<class T> struct C2; // expected-note {{template is declared here}} 6*67e74705SXin Li template<class T> void foo(T); wrap()7*67e74705SXin Livoid wrap() { 8*67e74705SXin Li foo(&C1<int>::operator()); 9*67e74705SXin Li foo(&C1<int>::operator+); // expected-error {{no member named 'operator+' in 'C1<int>'}} 10*67e74705SXin Li foo(&C2<int>::operator+); // expected-error {{implicit instantiation of undefined template 'C2<int>'}} 11*67e74705SXin Li } 12