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

           Summary: segault when using map with template delegate
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nob...@puremagic.com
        ReportedBy: deadal...@gmail.com


--- Comment #0 from deadalnix <deadal...@gmail.com> 2012-08-04 04:54:03 PDT ---
import std.algorithm;
import std.array;

class A {
    B[] b;
}

class B {}

void main() {
    A a;

    a.b = a.b.map!(b => b)().array();
}

This code segfault in invariant._d_invariant with dmd 2.060 . This ork fine
with (B b) { return b; } as delegate.

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

Reply via email to