Cleanup Postfix operators.

This commit is contained in:
Roberto Raggi
2009-11-10 14:24:32 +01:00
parent aff9a74366
commit a7219736b6
9 changed files with 24 additions and 25 deletions

View File

@@ -251,8 +251,8 @@ bool CheckExpression::visit(TypeConstructorCallAST *ast)
bool CheckExpression::visit(PostfixExpressionAST *ast)
{
FullySpecifiedType exprTy = semantic()->check(ast->base_expression, _scope);
for (PostfixAST *fx = ast->postfix_expressions; fx; fx = fx->next) {
accept(fx); // ### not exactly.
for (PostfixListAST *it = ast->postfix_expressions; it; it = it->next) {
accept(it->value); // ### not exactly.
}
return false;
}