[Issue 4789] New: std.algorithm.sort bug

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 2 19:40:13 PDT 2010


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

           Summary: std.algorithm.sort bug
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: soarowl at yeah.net


--- Comment #0 from soarowl at yeah.net 2010-09-02 19:39:54 PDT ---
private import 
    std.algorithm,
    std.stdio;

void main()
{
    int[2][] a;
    a ~= [1, 2];
    a ~= [2, 3];
    a ~= [3, 4];
    a ~= [1, 1];

    std.algorithm.sort(a);
    std.stdio.writefln("%s", a);
}


When I compile without any arguments, the runtime has an "object.Exception:
overlapping array copy" exception;

But when I compile with -release or -release -inline arguments, the result is
correct.

-- 
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