]> granicus.if.org Git - clang/commit
In C++, if we hit an error in the class-head, don't try to parse the class body.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 5 Dec 2012 11:34:06 +0000 (11:34 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 5 Dec 2012 11:34:06 +0000 (11:34 +0000)
commit37ec8d589c5de34d0e260f0599395519bd7498de
treeb92d24be4aba6baf967b2adbe697eaaccbaccb8e
parent5b10af7aa9e254a38d0a9f4d86caaccd61972124
In C++, if we hit an error in the class-head, don't try to parse the class body.
Our error recovery path may have made the class anonymous, and that has a pretty
disastrous impact on any attempt to parse a class body containing constructors.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169374 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/Parser/cxx-undeclared-identifier.cpp
test/Parser/recovery.cpp