Commit 298b6ac5 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Oops, restore the value of blockErrors()

parent 920880eb
...@@ -2932,9 +2932,9 @@ bool Parser::parseNameId(NameAST *&name) ...@@ -2932,9 +2932,9 @@ bool Parser::parseNameId(NameAST *&name)
unsigned saved = cursor(); unsigned saved = cursor();
ExpressionAST *expr = 0; ExpressionAST *expr = 0;
bool blocked = blockErrors(true); bool blocked = blockErrors(true);
if (parseCastExpression(expr)) { bool lookAtCastExpression = parseCastExpression(expr);
(void) blockErrors(blocked); (void) blockErrors(blocked);
if (lookAtCastExpression) {
if (CastExpressionAST *cast_expression = expr->asCastExpression()) { if (CastExpressionAST *cast_expression = expr->asCastExpression()) {
if (cast_expression->lparen_token && cast_expression->rparen_token if (cast_expression->lparen_token && cast_expression->rparen_token
&& cast_expression->type_id && cast_expression->expression) { && cast_expression->type_id && cast_expression->expression) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment