[Issue 4584] std.algorithm.sort fails with SwapStrategy.stable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Oct 23 17:35:28 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4584
Olivier Fabre <axel.foster-5bcwppg at yopmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |axel.foster-5bcwppg at yopmail
| |.com
--- Comment #1 from Olivier Fabre <axel.foster-5bcwppg at yopmail.com> 2011-10-23 17:34:22 PDT ---
I don't know if it helps, but I've got a similar failure with this program:
import std.algorithm;
void main() {
sort!("a<b", SwapStrategy.stable)(
[83, 42, 85, 86, 87, 22, 89, 30, 91, 46, 93, 94, 95, 6,
97, 14, 33, 10, 101, 102, 103, 26, 105, 106, 107, 6]
);
}
It returns:
core.exception.AssertError@/usr/include/d/std/algorithm.d(6662): Failed to sort
range of type int[]. Actual result is: [6, 42, 85, 86, 87, 22, 89, 30]...
(With the git version of dmd2 and libphobos2 from 21 oct. 2011.)
--
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