[Issue 11850] New: [ICE] Problem with filter with signed-unsigned array comparison

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 30 20:10:59 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11850

           Summary: [ICE] Problem with filter with signed-unsigned array
                    comparison
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          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 2013-12-30 20:10:57 PST ---
import std.algorithm: filter;
void main() {
    filter!(a => a < [0])([[0u]]);
}


DMD 2.065alpha gives the errors and then crashes:

temp.d(3): Error: incompatible types for ((a) < ([0])): 'uint[]' and 'int[]'
...\dmd2\src\phobos\std\algorithm.d(1396):        instantiated from here:
FilterResult!(__lambda1, uint[][])
temp.d(3):        instantiated from here: filter!(uint[][])
temp.d(3): Error: template instance temp.main.filter!((a) => a <
[0]).filter!(uint[][]) error instantiating

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


More information about the Digitalmars-d-bugs mailing list