summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/instantiate-method.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaTemplate/instantiate-method.cpp')
-rw-r--r--clang/test/SemaTemplate/instantiate-method.cpp4
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}}
}
};
OpenPOWER on IntegriCloud