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

           Summary: Problem with sorting tuples
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2011-03-07 16:15:56 PST ---
Problem found by Andr´┐Ż Stein, then reduced. This D2 code used to work:


import std.typecons, std.algorithm;
alias Tuple!(uint) T;
void main() {
    auto array = [T(1), T(3), T(2)];
    sort(array);
}


But with DMD 2.052 it gives:
object.Exception@src\rt\arraycat.d(40): overlapping array copy

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

Reply via email to