blob: 6013d0ae8b4e4bba5d61af63b53c33a263d493c5 [file] [log] [blame]
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x
void f();
void f(int);
decltype(f) a; // expected-error{{can't determine the declared type of an overloaded function}}
template<typename T> struct S {
decltype(T::f) * f; // expected-error{{can't determine the declared type of an overloaded function}}
};
struct K { void f(); void f(int); };
S<K> b; // expected-note{{in instantiation of template class 'struct S<struct K>' requested here}}