Commit 7e65890c authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Fixed a typo in foreach parsing, which stored the initializer in the

expression, which subsequently got overwritten by the (real) expression.
parent 61123092
......@@ -2153,7 +2153,7 @@ bool Parser::parseForeachStatement(StatementAST *&node)
blockErrors(blocked);
rewind(startOfTypeSpecifier);
parseAssignmentExpression(ast->expression);
parseAssignmentExpression(ast->initializer);
}
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