/// selection-statement
/// iteration-statement
/// jump-statement
+/// [C++] declaration-statement
/// [OBC] objc-throw-statement
/// [OBC] objc-try-catch-statement
/// [OBC] objc-synchronized-statement
// PASS THROUGH.
default:
- if (!OnlyStatement && isDeclarationSpecifier()) {
+ if ((getLang().CPlusPlus || !OnlyStatement) && isDeclarationSpecifier()) {
SourceLocation DeclStart = Tok.getLocation();
DeclTy *Res = ParseDeclaration(Declarator::BlockContext);
// FIXME: Pass in the right location for the end of the declstmt.