Tentative fix for semantic3 on imported modules and unnecessary template

function definition issue. Please test!
Also change linkage of __interfaceInfos to external (same as __Class, __vtbl,
__init). The other change might make this superfluous.
This commit is contained in:
Christian Kamm 2009-05-21 10:56:04 +02:00
parent 8e56fe69a4
commit f675d36cfb
3 changed files with 9 additions and 4 deletions

View file

@ -1371,6 +1371,11 @@ bool mustDefineSymbol(Dsymbol* s)
{
if (fd->isArrayOp)
return true;
// we can't (and probably shouldn't?) define functions
// that weren't semantic3'ed
if (fd->semanticRun < 4)
return false;
}
TemplateInstance* tinst = DtoIsTemplateInstance(s);