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 14621, 14624, 14625 - Fix bugs in array operator overloading semantics #4948

Merged
merged 7 commits into from Aug 29, 2015

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Aug 24, 2015

This is same with #4686, excepting the base branch is 'stable'.


Issue 14621 - [REG2.066] ICE: Assertion failure: 'global.gaggedErrors || global.errors' on line 752 in file 'statement.c'
Issue 14624 - The array operator overloading fallback is not correct
Issue 14625 - opIndex() doesn't work on foreach container iteration

Shorten the length of gagged semantic path, and improve ArrayExp as the entry point of array operator overloading.

…ng fallback

Points:
- Shorten the length of problematic gagged semantic path.
- Improve ArrayExp as the entry point of array operator overloading.
- Reduce stack size and the number of heap-allocated AST nodes for recursive semantic analysis.

Also fixes unlisted wrong-code issue. See test20x() in runnable/opover2.d
…bal.errors' on line 752 in file 'statement.c'
@9rnsr
Copy link
Contributor Author

9rnsr commented Aug 25, 2015

I fixed ddmd build failure in Win32/64.

@9rnsr
Copy link
Contributor Author

9rnsr commented Aug 25, 2015

All green.

@MartinNowak
Copy link
Member

LGTM, I'll have to merge stable into master before pulling, or I'll have to deal with too many conflicts at once.

@MartinNowak
Copy link
Member

#4979

@MartinNowak
Copy link
Member

Auto-merge toggled on

@9rnsr
Copy link
Contributor Author

9rnsr commented Aug 29, 2015

Thanks.

MartinNowak added a commit that referenced this pull request Aug 29, 2015
Issue 14621, 14624, 14625 - Fix bugs in array operator overloading semantics
@MartinNowak MartinNowak merged commit d996993 into dlang:stable Aug 29, 2015
@9rnsr 9rnsr deleted the fix14621 branch August 29, 2015 07:58
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