[Issue 7694] Internal error: e2ir.c 1251 when calling member function inside struct via alias param
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 22 12:33:46 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7694
--- Comment #1 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2012-03-22 12:34:05 PDT ---
Minimized test case and a workaround:
void match(alias m)(){
m.foo();//removing this line supresses ice in both cases
}
struct T{
void foo(){}
void bootstrap()
{
//next line causes ice
// match!(this)();
//while this works:
alias this p;
match!(p)();
}
}
void main(){}
Apaaerntly it has something to do with plain 'this' being mistreated in when
passed as alias.
--
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