D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5716 - Problem with sorting tuples
Summary: Problem with sorting tuples
Status: RESOLVED DUPLICATE of issue 5705
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2011-03-07 16:15 UTC by bearophile_hugs
Modified: 2011-03-08 04:22 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2011-03-07 16:15:56 UTC
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
Comment 1 kennytm 2011-03-08 04:22:41 UTC

*** This issue has been marked as a duplicate of issue 5705 ***