Commit ca62e4f6 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Fixed the parsing of foreach statements. The initializer expression needs to...

Fixed the parsing of foreach statements. The initializer expression needs to be an assignment expression.
parent b2df9bdd
......@@ -2130,7 +2130,7 @@ bool Parser::parseForeachStatement(StatementAST *&node)
blockErrors(blocked);
rewind(startOfTypeSpecifier);
parseExpression(ast->expression);
parseAssignmentExpression(ast->expression);
}
blockErrors(blocked);
......
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