← Back to index
|
Original Bugzilla link
Bug 13644 – [REG2.066] ICE with foreach over array of Tuples
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-10-21T17:09:00Z
Last change time
2015-02-18T03:38:45Z
Keywords
ice, pull
Assigned to
nobody
Creator
code
Comments
Comment #0
by code — 2014-10-21T17:09:52Z
import std.typecons; Tuple!(string, string)[] foo() { Tuple!(string, string)[] res; return res; } void main() { foreach (string k2, string v2; foo()) {} }
Comment #1
by bearophile_hugs — 2014-10-21T17:19:52Z
The unpacking of tuples in foreach should be deprecated and removed ASAP.
Comment #2
by k.hara.pg — 2014-10-23T02:05:50Z
It's a regression so the ICE happens since 2.066.
https://github.com/D-Programming-Language/dmd/pull/4085
Comment #3
by github-bugzilla — 2014-10-24T08:40:18Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/9f9dd5700204e74a65cfa3049d11b947bdaa10a7
fix Issue 13644 - ICE with foreach over array of Tuples
https://github.com/D-Programming-Language/dmd/commit/c4da1c7b03c357f6f6a1a7eaeaab0ba6ca0efd74
Merge pull request #4085 from 9rnsr/fix13644 [REG2.066] Issue 13644 - ICE with foreach over array of Tuples
Comment #4
by github-bugzilla — 2015-02-18T03:38:45Z
Commits pushed to 2.067 at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/9f9dd5700204e74a65cfa3049d11b947bdaa10a7
fix Issue 13644 - ICE with foreach over array of Tuples
https://github.com/D-Programming-Language/dmd/commit/c4da1c7b03c357f6f6a1a7eaeaab0ba6ca0efd74
Merge pull request #4085 from 9rnsr/fix13644