[Issue 18774] meta used in .di files causes link errors

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 17 22:59:57 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18774

--- Comment #3 from Manu <turkeyman at gmail.com> ---
Well in this case, the symbol is emit in a .di file, which means it's never
written to any object file; hence the unresolved external...

But that's actually kind-of irrelevant. The big question I have here is, where
is the link error coming from?! Why is there a reference in main.obj to
Zip!(...)'s init value? Where could that symbol reference possibly be coming
from? There's no runtime calls to zip().

I don't understand how the link error is even emerging, because there should be
nothing making such a reference.

--


More information about the Digitalmars-d-bugs mailing list