← Back to index
|
Original Bugzilla link
Bug 5716 – Problem with sorting tuples
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2011-03-07T16:15:00Z
Last change time
2011-03-08T04:22:41Z
Keywords
rejects-valid
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2011-03-07T16:15:56Z
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
by kennytm — 2011-03-08T04:22:41Z
*** This issue has been marked as a duplicate of issue 5705 ***