diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2013-08-12 21:54:01 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2013-08-12 21:54:01 +0000 |
commit | e2358c1debe988a9ff262cb267c791c93ee04a4a (patch) | |
tree | 4581450a8c22528a7a9d24a26350ca6f48bb53ad /clang/test/SemaCXX/nested-name-spec.cpp | |
parent | 48a317663fab26e9fd2b36f0379b348737b7be3b (diff) | |
download | bcm5719-llvm-e2358c1debe988a9ff262cb267c791c93ee04a4a.tar.gz bcm5719-llvm-e2358c1debe988a9ff262cb267c791c93ee04a4a.zip |
Fix crash w/BlockDecl and invalid qualified decl.
I'm not really satisfied with the ad-hoc nature of
Sema::diagnoseQualifiedDeclaration, but I'm not sure how to fix it.
Fixes <rdar://problem/14639501>.
llvm-svn: 188208
Diffstat (limited to 'clang/test/SemaCXX/nested-name-spec.cpp')
-rw-r--r-- | clang/test/SemaCXX/nested-name-spec.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/nested-name-spec.cpp b/clang/test/SemaCXX/nested-name-spec.cpp index 40e7e079261..572e4798244 100644 --- a/clang/test/SemaCXX/nested-name-spec.cpp +++ b/clang/test/SemaCXX/nested-name-spec.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -std=c++98 -verify %s +// RUN: %clang_cc1 -fsyntax-only -std=c++98 -verify -fblocks %s namespace A { struct C { static int cx; @@ -50,6 +50,7 @@ namespace B { void f1() { void A::Af(); // expected-error {{definition or redeclaration of 'Af' not allowed inside a function}} + void (^x)() = ^{ void A::Af(); }; // expected-error {{definition or redeclaration of 'Af' not allowed inside a block}} } void f2() { |