in dmd 2.012 this crashes the compiler after just adding an empty struct destructor, i really dont have a clue why:
[CODE]
module main;
import std.math;
struct Foo{
~this(){} //comment out and it works as expected
public int opCmp(Foo _a){return 0;}
}
void main(){
Foo[] m_imgs;
auto res = std.algorithm.isSorted!("a > b")(m_imgs);
}
[/CODE]
Comment #1 by bugs-d — 2009-03-29T22:45:13Z
Works for me in DMD 2.026, and D 1 doesn't allow struct destructors.
-[Unknown]