forked from qt-creator/qt-creator
Fixed the parsing of foreach statements. The initializer expression needs to be an assignment expression.
This commit is contained in:
@@ -2130,7 +2130,7 @@ bool Parser::parseForeachStatement(StatementAST *&node)
|
||||
|
||||
blockErrors(blocked);
|
||||
rewind(startOfTypeSpecifier);
|
||||
parseExpression(ast->expression);
|
||||
parseAssignmentExpression(ast->expression);
|
||||
}
|
||||
|
||||
blockErrors(blocked);
|
||||
|
||||
Reference in New Issue
Block a user