mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-13 10:54:10 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user