summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2011-04-24 16:27:48 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2011-04-24 16:27:48 +0000
commit83f3b859abfb1817089374542d1fe030e887d149 (patch)
treee1c8f0ee012b3fbc817eb561b3ba1a31b01cfa7d /clang/lib
parentddb3ab494d81db5f784ee22376ab9503e7f61d55 (diff)
downloadbcm5719-llvm-83f3b859abfb1817089374542d1fe030e887d149.tar.gz
bcm5719-llvm-83f3b859abfb1817089374542d1fe030e887d149.zip
Make the invalid declarator recovery when parsing members work the same as when parsing global decls. It's still rather broken (skipping much too far when the declarator belongs to a function definition), but at least not so broken as to mismatch braces. Tested by the removal of the fixme in the template test case.
llvm-svn: 130101
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Parse/ParseDeclCXX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseDeclCXX.cpp b/clang/lib/Parse/ParseDeclCXX.cpp
index 119bf0f762b..f59302868b5 100644
--- a/clang/lib/Parse/ParseDeclCXX.cpp
+++ b/clang/lib/Parse/ParseDeclCXX.cpp
@@ -1551,7 +1551,7 @@ void Parser::ParseCXXClassMemberDeclaration(AccessSpecifier AS,
// Error parsing the declarator?
if (!DeclaratorInfo.hasName()) {
// If so, skip until the semi-colon or a }.
- SkipUntil(tok::r_brace, true);
+ SkipUntil(tok::r_brace, true, true);
if (Tok.is(tok::semi))
ConsumeToken();
return;
OpenPOWER on IntegriCloud