Oops, restore the value of blockErrors()

This commit is contained in:
Roberto Raggi
2009-06-19 14:48:07 +02:00
parent 920880eb96
commit 298b6ac520

View File

@@ -2932,9 +2932,9 @@ bool Parser::parseNameId(NameAST *&name)
unsigned saved = cursor();
ExpressionAST *expr = 0;
bool blocked = blockErrors(true);
if (parseCastExpression(expr)) {
(void) blockErrors(blocked);
bool lookAtCastExpression = parseCastExpression(expr);
(void) blockErrors(blocked);
if (lookAtCastExpression) {
if (CastExpressionAST *cast_expression = expr->asCastExpression()) {
if (cast_expression->lparen_token && cast_expression->rparen_token
&& cast_expression->type_id && cast_expression->expression) {