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

           Summary: 'overlapping array copy' with sort of tuple array
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2011-06-02 14:55:08 PDT ---
This D2 program:


import std.typecons, std.random, std.algorithm;
void main() {
    alias Tuple!(int) T;
    T[8] array = [T(0),T(1),T(2),T(3),T(4),T(5),T(6),T(7)];
    sort(array[]);
    randomShuffle(array[]);
}


Gives me (DMD 2.053):
object.Exception@src\rt\arraycat.d(40): overlapping array copy

But I think this code is correct.

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

Reply via email to