Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4135 Regression(1.034): ICE(statement.c): mixin in bad foreach, D1 only #570

Merged
merged 1 commit into from
Dec 19, 2011

Conversation

donc
Copy link
Collaborator

@donc donc commented Dec 19, 2011

IMPORTANT: This is a pull request for D1 only.

A simple error propagation bug -- we should abandon hope if we don't know what the aggregate is.

Error propagation -- if we don't know what we're iterating over,
quit immediately (it might even be supposed to be a tuple).
WalterBright added a commit that referenced this pull request Dec 19, 2011
4135 Regression(1.034): ICE(statement.c): mixin in bad foreach, D1 only
@WalterBright WalterBright merged commit 07cbf6a into dlang:dmd-1.x Dec 19, 2011
@WalterBright
Copy link
Member

I'm curious why this doesn't apply to D2.

@donc
Copy link
Collaborator Author

donc commented Dec 20, 2011

It doesn't ICE in D2 because the foreach semantic is very different, it already exits before doing type deduction of the parameters Still, quitting immediately (as in this patch) would be OK to do in D2 as well.

braddr pushed a commit to braddr/dmd that referenced this pull request Oct 22, 2012
Fix Issue 6580 - scoped classes are aligned incorrectly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants