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: [email protected]
          Reporter: [email protected]

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'

--

Reply via email to