[Issue 12554] New: [ICE](struct.c line 898) with failed delegate purity
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 10 04:49:53 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12554
Issue ID: 12554
Summary: [ICE](struct.c line 898) with failed delegate purity
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: normal
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: bearophile_hugs at eml.cc
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'
--
More information about the Digitalmars-d-bugs
mailing list