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

           Summary: sort function is broken with large arrays
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from deadalnix <[email protected]> 2011-12-15 13:38:40 PST ---
See sample code :

module fail;

import std.algorithm;
import std.random;

void main() {
    Mt19937 gen;

    byte[] v;
    v.length = 65536 * 1024;

    foreach(ref byte t; v) {
        t = cast(byte) gen.front;
        gen.popFront;
    }

    v.sort;

    assert(isSorted(v));
}

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

Reply via email to