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

           Summary: 'glue.c' assertion failure with map(filter)
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2011-03-19 07:22:11 PDT ---
import std.algorithm;
void main() {
    int[] a = [1];
    map!((int i){ return filter!((int j){ return i; })(a); })(a);
}


With DMD 2.052 gives:
Assertion failure: '!vthis->csym' on line 703 in file 'glue.c'


Equivalent Python 2.6 code:

>>> a = [1]
>>> map(lambda i: filter(lambda j: i, a), a)
[[1]]

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

Reply via email to