diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2014-09-10 00:59:37 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2014-09-10 00:59:37 +0000 |
| commit | ef03e70573098f663b9285a21db48721c1098d42 (patch) | |
| tree | db37bb53904f14ec103d72ed41cccb5f9bc056fc /clang/test | |
| parent | 0ae7980c901f52e618e1b399c6fe7232c52d4692 (diff) | |
| download | bcm5719-llvm-ef03e70573098f663b9285a21db48721c1098d42.tar.gz bcm5719-llvm-ef03e70573098f663b9285a21db48721c1098d42.zip | |
Don't crash on access decls with invalid scope specifier, PR20887.
llvm-svn: 217472
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Parser/cxx-class.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx-class.cpp b/clang/test/Parser/cxx-class.cpp index 7e820f17aad..b6eb1b46db5 100644 --- a/clang/test/Parser/cxx-class.cpp +++ b/clang/test/Parser/cxx-class.cpp @@ -174,6 +174,11 @@ class PR20760_b { int f = d // expected-warning {{extension}} expected-error {{expected ';'}} }; +namespace PR20887 { +class X1 { a::operator=; }; // expected-error {{undeclared identifier 'a'}} +class X2 { a::a; }; // expected-error {{undeclared identifier 'a'}} +} + // PR11109 must appear at the end of the source file class pr11109r3 { // expected-note{{to match this '{'}} public // expected-error{{expected ':'}} expected-error{{expected '}'}} expected-error{{expected ';' after class}} |

