Bug 12554 – [ICE](struct.c line 898) with failed delegate purity

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-04-10T11:49:00Z
Last change time
2014-04-24T19:59:03Z
Keywords
ice, pull
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2014-04-10T11:49:53Z
import std.algorithm: map; import std.array: array; void main() pure { int[] foo; foo.map!(x => foo.map!(y => x).array); } DMD 2.066alpa crashes and prints: Assertion failure: 'type->ty != Tstruct || ((TypeStruct *)type)->sym == this' on line 898 in file 'struct.c'
Comment #1 by k.hara.pg — 2014-04-23T16:16:55Z
Comment #2 by github-bugzilla — 2014-04-24T19:59:02Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a3a203f31fbb44ceb346abeb06997237cbaae1a6 fix Issue 12554 - [ICE](struct.c line 898) with failed delegate purity https://github.com/D-Programming-Language/dmd/commit/215ef5efc32f7ae96f6c803e3c05c7cccaae7ad6 Merge pull request #3492 from 9rnsr/fix12554 [REG2.066a] Issue 12554 - [ICE](struct.c line 898) with failed delegate purity