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

expression, which subsequently got overwritten by the (real) expression.
This commit is contained in:
Erik Verbruggen
2009-07-29 09:46:38 +02:00
parent 61123092ab
commit 7e65890ca2

View File

@@ -2153,7 +2153,7 @@ bool Parser::parseForeachStatement(StatementAST *&node)
blockErrors(blocked);
rewind(startOfTypeSpecifier);
parseAssignmentExpression(ast->expression);
parseAssignmentExpression(ast->initializer);
}
blockErrors(blocked);