www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12554] New: [ICE](struct.c line 898) with failed delegate

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 puremagic.com
          Reporter: bearophile_hugs 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'

--
Apr 10 2014