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: nob...@puremagic.com ReportedBy: soar...@yeah.net --- Comment #0 from soar...@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: -------