[Issue 18338] typeid expression causes typeInfo to be duplicated

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 30 21:26:24 UTC 2018


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

kinke at gmx.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinke at gmx.net

--- Comment #1 from kinke at gmx.net ---
(In reply to Benjamin Thaut from comment #0)
> Typeid expressions should only instanciate the type info
> if the typeid expression is part of a root module.

I guess that's not enough for a shared `typeid(SomeSharedType)` expression in
both a root module of the DLL and in a root module of the other lib/executable.
There probably has to be a clear ownership by emitting the TypeInfo and its
helper functions once in the declaring/template-instantiating module/object.

How are colliding TypeInfo symbols across shared objects handled on Linux?

--


More information about the Digitalmars-d-bugs mailing list