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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 18 00:43:41 UTC 2018


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

Jonathan M Davis <issues.dlang at jmdavisProg.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |issues.dlang at jmdavisProg.co
                   |                            |m

--- Comment #4 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
If the .di file is being used, then the code that's importing it would expect
the symbol, but if the object file is then generated from the .d file, the
symbol isn't there, thus I would expect a linker error. AFAIK, the only way
around that would be if the compiler were smart enough to only use the symbol
for as long as necessary to do the CTFE call, because it's only used during
CTFE, and I don't think that it's that smart, much as I think that we can all
agree that we want it to be that smart.

I'd suggest that you provide the actual compilation commands that you're using
so that it's 100% clear how to reproduce what you're doing.

--


More information about the Digitalmars-d-bugs mailing list