Bug 10659 – Program segfaults using std.algorithm.map and std.algorithm.filter

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-07-17T01:37:00Z
Last change time
2013-11-21T18:36:06Z
Assigned to
nobody
Creator
peterneubauer2

Comments

Comment #0 by peterneubauer2 — 2013-07-17T01:37:07Z
The following source produces a program which segfaults: === File a.d: === import std.algorithm; void main () { auto p = (int) => true; [ 1 ].map!(x => x).filter!p; } === File b.d: === import std.algorithm; Output: $ dmd b.d a.d && ./b Segmentation fault (core dumped) The error depends on compile order: $ dmd a.d b.d && ./a $ # runs & exits fine
Comment #1 by peterneubauer2 — 2013-07-17T01:37:56Z
DMD version is 2.063.2
Comment #2 by k.hara.pg — 2013-11-21T18:36:06Z
Fixed in 2.064.