mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-10-07 00:26:55 +02:00
[svn r156] added a testcase for the most annoying bug ever
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user