www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Stable sort in std.algorithm throws Range violation

reply Matthias Walter <xammy xammy.homelinux.net> writes:
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
Apr 08 2011
parent "Jonathan M Davis" <jmdavisProg gmx.com> writes:
On 2011-04-08 02:09, Matthias Walter wrote:
 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,
Please do not post to this list. It's intended for receiving messages from bugzilla, not for posting to. I don't know why posting to it is even enabled. Please post bugs to bugzilla. If you want to discuss the bug, then post on the D.learn or D lists. As for this porticular bug, I believe that it is http://d.puremagic.com/issues/show_bug.cgi?id=4584 - Jonathan M Davis
Apr 08 2011