Mercurial > projects > ldc
diff gen/typinf.cpp @ 1358:78038e540342
Fix overload resolution issue in dmd bug 313/314 fix.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 16 May 2009 12:17:33 +0200 |
parents | 712662f45ee4 |
children | 46f6365a50d7 |
line wrap: on
line diff
--- a/gen/typinf.cpp Fri May 15 17:17:20 2009 +0200 +++ b/gen/typinf.cpp Sat May 16 12:17:33 2009 +0200 @@ -749,7 +749,7 @@ fdx = s ? s->isFuncDeclaration() : NULL; if (fdx) { - fd = fdx->overloadExactMatch(tftohash); + fd = fdx->overloadExactMatch(tftohash, getModule()); if (fd) { fd->codegen(Type::sir); assert(fd->ir.irFunc->func != 0); @@ -775,7 +775,7 @@ ptty = isaPointer(stype->getElementType(5+i)); if (fdx) { - fd = fdx->overloadExactMatch(tfeqptr); + fd = fdx->overloadExactMatch(tfeqptr, getModule()); if (fd) { fd->codegen(Type::sir); assert(fd->ir.irFunc->func != 0); @@ -803,7 +803,7 @@ fdx = s ? s->isFuncDeclaration() : NULL; if (fdx) { - fd = fdx->overloadExactMatch(tftostring); + fd = fdx->overloadExactMatch(tftostring, getModule()); if (fd) { fd->codegen(Type::sir); assert(fd->ir.irFunc->func != 0);