summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-01-07 19:29:58 +0000
committerJohn McCall <rjmccall@apple.com>2010-01-07 19:29:58 +0000
commit64fe23370481d2c18460367ff8b933a7e4884c52 (patch)
tree80383372e1fb6d243a15a236e87f16da21b36d80 /clang/test
parentbd0c5da5fc83c5e170021e8f474c1f61c7dd8231 (diff)
downloadbcm5719-llvm-64fe23370481d2c18460367ff8b933a7e4884c52.tar.gz
bcm5719-llvm-64fe23370481d2c18460367ff8b933a7e4884c52.zip
When parsing an identifier as an expression in C++, only try to annotate it
as a type or scope token if the next token requires it. This eliminates a lot of redundant lookups in C++, but there's room for improvement; a better solution would do a single lookup whose kind and results would be passed through the parser. llvm-svn: 92930
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p4.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p4.cpp b/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p4.cpp
index f2dc64b8074..23da98ce7ee 100644
--- a/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p4.cpp
+++ b/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p4.cpp
@@ -166,7 +166,8 @@ namespace test3 {
template <class T> struct C : A<T> {
using typename A<T>::type;
- using typename A<T>::hiding; // expected-error {{'typename' keyword used on a non-type}}
+ using typename A<T>::hiding; // expected-note {{declared at}} \
+ // expected-error {{'typename' keyword used on a non-type}}
using typename A<T>::union_member; // expected-error {{'typename' keyword used on a non-type}}
using typename A<T>::enumerator; // expected-error {{'typename' keyword used on a non-type}}
@@ -175,7 +176,7 @@ namespace test3 {
}
void test7() {
- Opaque0 _ = hiding; // expected-error {{expected '(' for function-style cast or type construction}}
+ Opaque0 _ = hiding; // expected-error {{does not refer to a value}}
}
};
OpenPOWER on IntegriCloud