diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-21 06:43:26 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-21 06:43:26 +0000 |
commit | 1a176f0b96f21380663d03e1ba48294e9fbda270 (patch) | |
tree | 526cf88436b0501edf6d4de5ee939e1d0746a9b2 /clang/test/SemaCXX/nested-name-spec.cpp | |
parent | 83423aa2767bab14f9c82180c3bb9cfc83c62dae (diff) | |
download | bcm5719-llvm-1a176f0b96f21380663d03e1ba48294e9fbda270.tar.gz bcm5719-llvm-1a176f0b96f21380663d03e1ba48294e9fbda270.zip |
Fix a crash that occurs in this C++ case:
struct foo {
static bool value;
};
bool (foo::value); // crash because of parens
llvm-svn: 76538
Diffstat (limited to 'clang/test/SemaCXX/nested-name-spec.cpp')
-rw-r--r-- | clang/test/SemaCXX/nested-name-spec.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/nested-name-spec.cpp b/clang/test/SemaCXX/nested-name-spec.cpp index 8fff8a2b2cb..97f31033e8a 100644 --- a/clang/test/SemaCXX/nested-name-spec.cpp +++ b/clang/test/SemaCXX/nested-name-spec.cpp @@ -172,7 +172,10 @@ X::X() : a(5) { } // expected-error{{use of undeclared identifier 'X'}} \ // expected-error{{C++ requires a type specifier for all declarations}} \ // expected-error{{only constructors take base initializers}} - +struct foo_S { + static bool value; +}; +bool (foo_S::value); namespace somens { |