digitalmars.D.bugs - [Issue 4861] New: Zip-sorting broken
- d-bugmail puremagic.com (29/29) Sep 13 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4861
- d-bugmail puremagic.com (12/12) Sep 13 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4861
http://d.puremagic.com/issues/show_bug.cgi?id=4861 Summary: Zip-sorting broken Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: regression Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: dsimcha yahoo.com Latest SVN release of Phobos (1993), DMD 2.048, must be run w/ asserts enabled: import std.algorithm, std.range; void main() { auto a = [5,4,3,2,1]; auto b = [3,1,2,5,6]; auto z = zip(a, b); sort!"a.field[0] < b.field[0]"(z); } core.exception.AssertError d:\dmd2\windows\bin\..\..\src\phobos\std\algorithm.d(5187): Zip!(int[],int[]): [Tuple!(int,int)(4, 1) Tuple!(int,int)(5, 3) Tuple!(int,int)(3, 2) Tuple!(int,int)(1, 6) Tuple!(int,int)(2, 5)] For some reason the zip-sorting case used in the Zip unittest seems to miss this bug, but it occurs on almost all real-world inputs. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 13 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4861 Andrei Alexandrescu <andrei metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrei metalanguage.com Resolution| |FIXED 15:59:18 PDT --- http://www.dsource.org/projects/phobos/changeset/1995 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 13 2010