summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/nested-name-spec.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2014-04-13 16:52:03 +0000
committerSerge Pavlov <sepavloff@gmail.com>2014-04-13 16:52:03 +0000
commit6a7ffbed8ab434277483075b7bb3ed37ab4d5889 (patch)
tree1b76e8fd8c554a934cbe1996badc4479f9288b84 /clang/test/SemaCXX/nested-name-spec.cpp
parent8e5e78e19bc94f36d968e6e8a8bcec17495ca3a0 (diff)
downloadbcm5719-llvm-6a7ffbed8ab434277483075b7bb3ed37ab4d5889.tar.gz
bcm5719-llvm-6a7ffbed8ab434277483075b7bb3ed37ab4d5889.zip
Improve error recovery around colon.
Parse of nested name spacifier is modified so that it properly recovers if colon is mistyped as double colon in case statement. This patch fixes PR15133. Differential Revision: http://llvm-reviews.chandlerc.com/D2870 llvm-svn: 206135
Diffstat (limited to 'clang/test/SemaCXX/nested-name-spec.cpp')
-rw-r--r--clang/test/SemaCXX/nested-name-spec.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/test/SemaCXX/nested-name-spec.cpp b/clang/test/SemaCXX/nested-name-spec.cpp
index 8587e70158b..bfbf9c4135f 100644
--- a/clang/test/SemaCXX/nested-name-spec.cpp
+++ b/clang/test/SemaCXX/nested-name-spec.cpp
@@ -8,13 +8,12 @@ namespace A {
static int Ag1();
static int Ag2();
};
- int ax;
+ int ax; // expected-note {{'ax' declared here}}
void Af();
}
A:: ; // expected-error {{expected unqualified-id}}
-// FIXME: there is a member 'ax'; it's just not a class.
-::A::ax::undef ex3; // expected-error {{no member named 'ax'}}
+::A::ax::undef ex3; // expected-error {{'ax' is not a class, namespace, or scoped enumeration}}
A::undef1::undef2 ex4; // expected-error {{no member named 'undef1'}}
int A::C::Ag1() { return 0; }
OpenPOWER on IntegriCloud