http://d.puremagic.com/issues/show_bug.cgi?id=7694
Summary: Internal error: e2ir.c 1251 when calling member
function inside struct via alias param
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Dmitry Olshansky <[email protected]> 2012-03-12
12:42:51 PDT ---
As is the following gives assert on line 8 as expected,
uncomment bootstrap to get Internal error: e2ir.c 1251
template Instruction(int ir)
{
void match(alias s, alias m)(){ m.nextState(); }
}
struct T{
void nextState(){ assert(0); }
/* void bootstrap()
{
return Instruction!(0).match!(this, this)();
}*/
}
T t;
void main()
{
// t.bootstrap();
Instruction!(0).match!(t, t)();
}
on dmd 2.059head win7 x64
last commit: bcfd90aae05bd6259212ec870b2c037569029d77
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------