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

Issue 12902 & 10904 - fix ICEs with opDollar and multidimensional operator overloading #3668

Merged
merged 2 commits into from Jun 15, 2014

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Jun 14, 2014

Issue 12902 - [ICE] Assertion failure '!ae->lengthVar' in 'expression.c' when using opDollar
Issue 12904 - Wrong-code for some slice to slice assignments when using opDollar

@@ -10986,6 +10986,10 @@ Expression *AssignExp::semantic(Scope *sc)
if (ex->op == TOKerror)
return ex;

e2 = e2->semantic(sc);
if (e2->op == TOKerror)
return e2;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently if the e2 semantic analysis is done under error gagging as an argument of opIndexAssign call, the result would lost. By this change, the semantic result of e2 will be properly taken over to the opSliceAssign call.

WalterBright added a commit that referenced this pull request Jun 15, 2014
Issue 12902 & 10904 - fix ICEs with opDollar and multidimensional operator overloading
@WalterBright WalterBright merged commit 493250d into dlang:master Jun 15, 2014
@9rnsr 9rnsr deleted the fix12902 branch June 16, 2014 01:45
@9rnsr
Copy link
Contributor Author

9rnsr commented Jun 16, 2014

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants