Skip to content

Commit

Permalink
Merge pull request #570 from donc/ice4135
Browse files Browse the repository at this point in the history
4135 Regression(1.034): ICE(statement.c): mixin in bad foreach, D1 only
  • Loading branch information
WalterBright committed Dec 19, 2011
2 parents fcd345d + 017697a commit 07cbf6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/statement.c
Expand Up @@ -1331,6 +1331,8 @@ Statement *ForeachStatement::semantic(Scope *sc)
error("invalid foreach aggregate %s", aggr->toChars());
return this;
}
if (aggr->type->toBasetype()->ty == Terror)
return NULL;

inferApplyArgTypes(op, arguments, aggr);

Expand Down

0 comments on commit 07cbf6a

Please sign in to comment.