diff options
Diffstat (limited to 'Parse/ParseExpr.cpp')
-rw-r--r-- | Parse/ParseExpr.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Parse/ParseExpr.cpp b/Parse/ParseExpr.cpp index 51ad217e31..c2b5482855 100644 --- a/Parse/ParseExpr.cpp +++ b/Parse/ParseExpr.cpp @@ -928,10 +928,9 @@ Parser::ExprResult Parser::ParseParenExpression(ParenParseOption &ExprType, ExprResult Result(true); CastTy = 0; - if (ExprType >= CompoundStmt && Tok.getKind() == tok::l_brace && - !getLang().NoExtensions) { + if (ExprType >= CompoundStmt && Tok.getKind() == tok::l_brace) { Diag(Tok, diag::ext_gnu_statement_expr); - Parser::StmtResult Stmt = ParseCompoundStatement(); + Parser::StmtResult Stmt = ParseCompoundStatement(true); ExprType = CompoundStmt; // If the substmt parsed correctly, build the AST node. |