[svn r156] added a testcase for the most annoying bug ever

This commit is contained in:
Tomas Lindquist Olsen
2008-03-24 20:05:44 +01:00
parent ecd91a48f2
commit 24392c4903
3 changed files with 11 additions and 0 deletions
+4
View File
@@ -1199,6 +1199,7 @@ DValue* CallExp::toElem(IRState* p)
DValue* CastExp::toElem(IRState* p)
{
assert(type);
Logger::print("CastExp::toElem: %s | %s\n", toChars(), type->toChars());
LOG_SCOPE;
@@ -2254,7 +2255,10 @@ DValue* DelegateExp::toElem(IRState* p)
else if (func->toParent()->isInterfaceDeclaration())
assert(0 && "TODO delegate to interface method");
else
{
DtoForceDeclareDsymbol(func);
castfptr = func->irFunc->func;
}
castfptr = DtoBitCast(castfptr, fptr->getType()->getContainedType(0));
DtoStore(castfptr, fptr);