[Issue 19701] undefined reference to `_D6object__T6hashOf

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 26 19:47:34 UTC 2019


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

kinke at gmx.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|dmd                         |druntime

--- Comment #2 from kinke at gmx.net ---
The object files differ. With `-Df`, there's an external reference to
_D6object__T6hashOfTxaZQlFNaNbNiNfKxaZm, while it's
_D4core8internal4hash__T6hashOfTaZQkFNaNbNiNexaZm without that switch.

Looking at object.d, that's because -Df defines `version=D_Ddoc`, so that
object.hashOf isn't an alias, but a wrapper:
https://github.com/dlang/druntime/blob/58dcda229e0658451325b70243fb5cb67c6cda46/src/object.d#L4080-L4115

--


More information about the Digitalmars-d-bugs mailing list