diff options
author | John McCall <rjmccall@apple.com> | 2009-12-16 08:11:27 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-12-16 08:11:27 +0000 |
commit | 578b69b186d9cba0a6ae1dd7f4c04cd6a49f0aac (patch) | |
tree | ede0c169beeed54c863512d74bae423fdb1b51b3 /test/SemaTemplate/instantiate-call.cpp | |
parent | e8e4a1c0bf2e3dd26dd0721a102307bbb589e96a (diff) |
Introduce a centralized routine in Sema for diagnosing failed lookups (when
used as expressions). In dependent contexts, try to recover by doing a lookup
in previously-dependent base classes. We get better diagnostics out, but
unfortunately the recovery fails: we need to turn it into a method call
expression, not a bare call expression. Thus this is still a WIP.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91525 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/instantiate-call.cpp')
-rw-r--r-- | test/SemaTemplate/instantiate-call.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaTemplate/instantiate-call.cpp b/test/SemaTemplate/instantiate-call.cpp index a40364a147..ad06be33aa 100644 --- a/test/SemaTemplate/instantiate-call.cpp +++ b/test/SemaTemplate/instantiate-call.cpp @@ -24,7 +24,7 @@ namespace N3 { template<typename T, typename Result> struct call_f0 { void test_f0(T t) { - Result &result = f0(t); // expected-error 2{{no matching}} + Result &result = f0(t); // expected-error 2{{undeclared identifier}} } }; } |