mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 16:41:06 +03:00
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:
parent
8e56fe69a4
commit
f675d36cfb
3 changed files with 9 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue