[Issue 5716] New: Problem with sorting tuples

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 7 16:18:56 PST 2011


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: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at 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 at 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: -------


More information about the Digitalmars-d-bugs mailing list