Fix #318 by making a list of all seen template instances in a module for

singleobj compilation and then making sure they get emitted in their entirety.
This commit is contained in:
Christian Kamm
2009-06-06 09:47:32 +02:00
parent c6946d4072
commit b4f8bd6e52
4 changed files with 26 additions and 1 deletions

View File

@@ -1409,7 +1409,10 @@ bool mustDefineSymbol(Dsymbol* s)
return true;
if (!tinst->emittedInModule)
{
gIR->seenTemplateInstances.insert(tinst);
tinst->emittedInModule = gIR->dmodule;
}
return tinst->emittedInModule == gIR->dmodule;
}