Stable sort in std.algorithm throws Range violation

Matthias Walter xammy at xammy.homelinux.net
Fri Apr 8 02:09:43 PDT 2011


Hi,

when using the most recent D2/32bit version from github of
dmd+druntime+phobos I get a Range violation from the following code:

| import std.algorithm;
|
| void main(char[][] args)
| {
|   sort!("a < b", SwapStrategy.stable)([1,0, 3, 2]);
| }

Can anybody confirm this? Shall I file a bug?

best regards,

Matthias Walter


More information about the Digitalmars-d-bugs mailing list