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/SemaCXX/conversion-function.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/SemaCXX/conversion-function.cpp')
-rw-r--r-- | test/SemaCXX/conversion-function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/conversion-function.cpp b/test/SemaCXX/conversion-function.cpp index d74bd2e391..997e19c388 100644 --- a/test/SemaCXX/conversion-function.cpp +++ b/test/SemaCXX/conversion-function.cpp @@ -9,7 +9,7 @@ public: } float g() { - return operator float(); // expected-error{{no matching function for call to 'operator float'}} + return operator float(); // expected-error{{use of undeclared 'operator float'}} } }; |