[Issue 5754] New: 'glue.c' assertion failure with map(filter)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 19 07:25:25 PDT 2011


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: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at 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: -------


More information about the Digitalmars-d-bugs mailing list