[Issue 10659] New: Program segfaults using std.algorithm.map and std.algorithm.filter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 17 01:37:08 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10659
Summary: Program segfaults using std.algorithm.map and
std.algorithm.filter
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: peterneubauer2 at gmail.com
--- Comment #0 from Peter Neubauer <peterneubauer2 at gmail.com> 2013-07-17 01:37:07 PDT ---
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
--
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