digitalmars.D.bugs - [Issue 12839] New: std.parallelism with nested functions and
- via Digitalmars-d-bugs (32/32) Jun 02 2014 https://issues.dlang.org/show_bug.cgi?id=12839
https://issues.dlang.org/show_bug.cgi?id=12839 Issue ID: 12839 Summary: std.parallelism with nested functions and lambdas. Segfault Product: D Version: unspecified Hardware: x86_64 OS: Linux Status: NEW Severity: major Priority: P1 Component: Phobos Assignee: nobody puremagic.com Reporter: john.loughran.colvin gmail.com import std.parallelism; import std.algorithm; auto loo(int a, int[] b) { auto inner(int c) { return a; } return b.map!((x) => () => inner(x)); } void main() { defaultPoolThreads = 1; auto res = loo(3, [1,2,3]); auto jobs = taskPool.map!"a()"(res); } This segfaults. More details to come. --
Jun 02 2014