digitalmars.D.bugs - [Issue 15132] New: std.algorithm.sort crash on windows
- via Digitalmars-d-bugs (50/50) Oct 01 2015 https://issues.dlang.org/show_bug.cgi?id=15132
https://issues.dlang.org/show_bug.cgi?id=15132 Issue ID: 15132 Summary: std.algorithm.sort crash on windows Product: D Version: D2 Hardware: x86_64 URL: http://dlang.org/ OS: Windows Status: NEW Severity: critical Priority: P3 Component: phobos Assignee: nobody puremagic.com Reporter: mzfhhhh foxmail.com i write a uncorrect opCmp code, it runs and did't crashed on ubuntu,dmd2.068.2 but crashed on win7 x64,dmd2.068.2 ------------------------------------------------- import std.stdio; import std.algorithm; class A { override int opCmp(Object o) const { return -1; } } void main() { A [] arr; foreach(i;1..100) { arr ~= new A; arr.sort; writeln(i); } } ------------------------------------------------ 1 2 3 4 5 6 7 object.Error (0): Access Violation ---------------- 0x004047D2 0x00403773 --
Oct 01 2015