diff options
author | John McCall <rjmccall@apple.com> | 2009-11-30 22:42:35 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-11-30 22:42:35 +0000 |
commit | 10eae1851d3f6cfa9ab665fc2bd54a3ff57293d8 (patch) | |
tree | 92bacc32cd9c5e89a53994b619effcc494843cc7 /clang/test/SemaTemplate/instantiate-method.cpp | |
parent | 120037fec7ad543a95ec19aced0ab5778a160de9 (diff) | |
download | bcm5719-llvm-10eae1851d3f6cfa9ab665fc2bd54a3ff57293d8.tar.gz bcm5719-llvm-10eae1851d3f6cfa9ab665fc2bd54a3ff57293d8.zip |
Eliminate the use of OverloadedFunctionDecl in member expressions.
Create a new UnresolvedMemberExpr for these lookups. Assorted hackery
around qualified member expressions; this will all go away when we
implement the correct (i.e. extremely delayed) implicit-member semantics.
llvm-svn: 90161
Diffstat (limited to 'clang/test/SemaTemplate/instantiate-method.cpp')
-rw-r--r-- | clang/test/SemaTemplate/instantiate-method.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/SemaTemplate/instantiate-method.cpp b/clang/test/SemaTemplate/instantiate-method.cpp index a82e84d36c9..2351d882f9c 100644 --- a/clang/test/SemaTemplate/instantiate-method.cpp +++ b/clang/test/SemaTemplate/instantiate-method.cpp @@ -95,7 +95,9 @@ struct X0 : X0Base { template<typename U> struct X1 : X0<U> { int &f2() { - return X0Base::f(); // expected-error{{call to non-static member function without an object argument}} + // FIXME: We should be able to do this lookup and diagnose the error + // *despite* the fact that we can't decide the relationship yet. + return X0Base::f(); // expected-FIXME-error{{call to non-static member function without an object argument}} } }; |