aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/conversion-function.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-11-18 15:03:34 +0000
committerDouglas Gregor <dgregor@apple.com>2008-11-18 15:03:34 +0000
commit10c4262aeb5212375e3fa64e76887bd9bcc79924 (patch)
treeec0f8048581575e9882e5866b9ebce78b40ed4e9 /test/SemaCXX/conversion-function.cpp
parente94ca9e4371c022329270436b3dd77adc4ddfa8f (diff)
As threatened previously: consolidate name lookup and the creation of
DeclRefExprs and BlockDeclRefExprs into a single function Sema::ActOnDeclarationNameExpr, eliminating a bunch of duplicate lookup-name-and-check-the-result code. Note that we still have the three parser entry points for identifiers, operator-function-ids, and conversion-function-ids, since the parser doesn't (and shouldn't) know about DeclarationNames. This is a Good Thing (TM), and there will be more entrypoints coming (e.g., for C++ pseudo-destructor expressions). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59527 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/conversion-function.cpp')
-rw-r--r--test/SemaCXX/conversion-function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/conversion-function.cpp b/test/SemaCXX/conversion-function.cpp
index 22ed411e64..3c2401f110 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 conversion function to type 'float'}}
+ return operator float(); // expected-error{{use of undeclared 'operator float'}}
}
};