DMD issue 1570 - Wrong return for address operator

This commit is contained in:
Alexey Prokhin
2011-07-19 19:20:39 +04:00
parent 7a31b599cc
commit c470a715a0

View File

@@ -2226,7 +2226,7 @@ DValue* DelegateExp::toElem(IRState* p)
LLValue* castfptr;
if (e1->op != TOKsuper && func->isVirtual() && !func->isFinal())
if (e1->op != TOKsuper && e1->op != TOKdottype && func->isVirtual() && !func->isFinal())
castfptr = DtoVirtualFunctionPointer(u, func, toChars());
else if (func->isAbstract())
assert(0 && "TODO delegate to abstract method");