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

fix Issue 22006 - static foreach and foreach over tuple doesn't work on 16-bit #12662

Merged
merged 1 commit into from
Jun 9, 2021

Conversation

ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented Jun 9, 2021

Rather than restricting the static foreach index to a reduced set of types that excludes targets with a 16-bit size_t from working properly. Do the similar checks as regular foreach and error for all non-integral types, and types that cannot represent the full range of index values.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @ibuclaw!

Bugzilla references

Auto-close Bugzilla Severity Description
22006 major static foreach and foreach over tuple doesn't work on 16-bit

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#12662"

@RazvanN7 RazvanN7 merged commit 041ddff into dlang:master Jun 9, 2021
@ibuclaw ibuclaw deleted the issue22006 branch June 9, 2021 19:59
ibuclaw added a commit to ibuclaw/dmd that referenced this pull request Jun 10, 2021
ibuclaw added a commit to ibuclaw/dmd that referenced this pull request Jun 11, 2021
ibuclaw added a commit that referenced this pull request Jun 11, 2021
UplinkCoder pushed a commit to UplinkCoder/dmd that referenced this pull request Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants