diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-04-11 20:59:20 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-04-11 20:59:20 +0000 |
commit | b8caac8e321d28ec5aa45eccf199e40659c09493 (patch) | |
tree | 102faf399d55946033cb171e232877225f8e98f1 /clang/test/SemaCXX/class.cpp | |
parent | 63fa02ea89b376d63409ed7c5aac4fe5b11af44b (diff) | |
download | bcm5719-llvm-b8caac8e321d28ec5aa45eccf199e40659c09493.tar.gz bcm5719-llvm-b8caac8e321d28ec5aa45eccf199e40659c09493.zip |
Part of PR10101: after a parse error in a declaration, try harder to find the
right place to pick up parsing. In C++, this had a tendency to skip everything
declared within headers if the TU starts with garbage.
llvm-svn: 154530
Diffstat (limited to 'clang/test/SemaCXX/class.cpp')
-rw-r--r-- | clang/test/SemaCXX/class.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/class.cpp b/clang/test/SemaCXX/class.cpp index ec82925fe4e..4dffc8d9ecb 100644 --- a/clang/test/SemaCXX/class.cpp +++ b/clang/test/SemaCXX/class.cpp @@ -131,10 +131,10 @@ namespace pr6629 { bogus<foo<T1,T2> > // expected-error {{unknown template name 'bogus'}} \ // BOGUS expected-error {{expected '{' after base class list}} \ // BOGUS expected-error {{expected ';' after struct}} \ - // BOGUS expected-error {{expected unqualified-id}} \ + // BOGUS expected-error {{expected unqualified-id}} { }; - template<> struct foo<unknown,unknown> { // why isn't there an error here? + template<> struct foo<unknown,unknown> { // expected-error {{undeclared identifier 'unknown'}} template <typename U1, typename U2> struct bar { typedef bar type; static const int value = 0; |