[Issue 6093] New: 'overlapping array copy' with sort of tuple array
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jun 2 14:59:34 PDT 2011
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: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at 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 at 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: -------
More information about the Digitalmars-d-bugs
mailing list