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: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 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: -------

Reply via email to