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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 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: -------