[Issue 4481] ICE(glue.c, !vthis->csym) or compiles, depending on the import statements order
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 2 02:17:52 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=4481
jack.un at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jack.un at gmail.com
--- Comment #12 from jack.un at gmail.com 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: -------
More information about the Digitalmars-d-bugs
mailing list