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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 18 03:57:36 UTC 2018


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

--- Comment #7 from Manu <turkeyman at gmail.com> ---
Orly? Doesn't happen for you? That's even worse.

Just the presence of the declaration shouldn't result in a link error.
You can declare all the undefined functions you like, you don't get link errors
unless there is a reference to them that the linker tries (and can't) resolve.
I don't understand what reference there could possibly be to Zip!().init, even
if it was generated and emit to the symbol table when it was instantiated by
CTFE.

Your hunch that it's emit into some sort of template-instantiation namespace
rather than into a module is probably on the money. It smells like the problem
could be tangled in that complexity... but at the end of the day, I just can't
imagine where the reference is that the linker could be upset about.

Anyway, this was discovered by a colleague at Blizzard who's exploring D. It
would certainly be reassuring if we could fix it promptly.

--


More information about the Digitalmars-d-bugs mailing list