[Issue 9791] New: [ICE] (struct.c line 668) map with a missing tuple import

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 23 07:48:29 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9791

           Summary: [ICE] (struct.c line 668) map with a missing tuple
                    import
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2013-03-23 07:48:28 PDT ---
This is wrong code because it doesn't import std.typecons.tuple:


import std.range: iota;
import std.algorithm: map;
void main() {
    iota(1).map!(x => tuple(x));
}



DMD 2.063alpha gives:

Assertion failure: 'type->ty != Tstruct || ((TypeStruct *)type)->sym == this'
on line 668 in file 'struct.c'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list