http://d.puremagic.com/issues/show_bug.cgi?id=4481
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #12 from [email protected] 2013-06-02 02:17:47 PDT --- 2.063 has another variant of this still. If i use struct with opCall (because my sort needs a third variable) then it still crashes depending what order it is imported. Crashes with glue.c:786: virtual void FuncDeclaration::toObjFile(int): Assertion `!vthis->csym' failed. //crash.d // import anything a bit complex import std.stdio; // crash import crashb; import std.stdio; //no crash void main() { auto a = new A; a.sort(); } ///crashb.d module crashb; import std.algorithm; struct Sorter { bool opCall(int a, int b) { return a < b; } } class A { void sort() { uint[] s; Sorter sorter; std.algorithm.sort!sorter(s); } } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
