Bug 22007 – static foreach: cannot implicitly convert expression Tuple4(0LU, 1) of type Tuple4 to int
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-06-08T18:27:56Z
Last change time
2021-06-11T17:17:55Z
Keywords
pull
Assigned to
No Owner
Creator
Iain Buclaw
Comments
Comment #0 by ibuclaw — 2021-06-08T18:27:56Z
Code works with foreach, but not static foreach
immutable int[32] array = 1;
foreach (size_t a, int b; array) {}
static foreach (size_t a, int b; array) { }
Comment #1 by dlang-bot — 2021-06-08T23:03:46Z
@ibuclaw created dlang/dmd pull request #12652 "fix Issue 22007 - static foreach: cannot implicitly convert expression Tuple4(0LU, 1) of type Tuple4 to int" fixing this issue:
- fix Issue 22007 - static foreach: cannot implicitly convert expression Tuple4(0LU, 1) of type Tuple4 to int
https://github.com/dlang/dmd/pull/12652
Comment #2 by dlang-bot — 2021-06-09T05:31:46Z
dlang/dmd pull request #12652 "fix Issue 22007 - static foreach: cannot implicitly convert expression Tuple4(0LU, 1) of type Tuple4 to int" was merged into master:
- c43300e40b447dc23b626ed07ec5ab5cb4d61f8b by Iain Buclaw:
fix Issue 22007 - static foreach: cannot implicitly convert expression Tuple4(0LU, 1) of type Tuple4 to int
https://github.com/dlang/dmd/pull/12652
Comment #3 by dlang-bot — 2021-06-11T17:17:55Z
dlang/dmd pull request #12668 "[dmd-cxx] Backport recent bug fixes for static foreach ICEs" was merged into dmd-cxx:
- 65b7ce4a6667183ada2e66f176a57ff813b1ea54 by Iain Buclaw:
[dmd-cxx] fix Issue 22007 - static foreach: cannot implicitly convert expression Tuple4(0LU, 1) of type Tuple4 to int (#12652)
https://github.com/dlang/dmd/pull/12668