Home | History | Annotate | Download | only in SemaCXX
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x
      2 
      3 void f(); // expected-note{{candidate function}}
      4 void f(int); // expected-note{{candidate function}}
      5 decltype(f) a; // expected-error{{cannot resolve overloaded function 'f' from context}}
      6 
      7 template<typename T> struct S {
      8   decltype(T::f) * f; // expected-error{{cannot resolve overloaded function 'f' from context}}
      9 };
     10 
     11 struct K {
     12   void f();  // expected-note{{candidate function}}
     13   void f(int); // expected-note{{candidate function}}
     14 };
     15 S<K> b; // expected-note{{in instantiation of template class 'S<K>' requested here}}
     16