[Issue 20248] Module constructors in executable called twice, never in loaded shared library
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 29 16:36:54 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=20248
--- Comment #3 from kinke <kinke at gmx.net> ---
There's a related issue regarding CRT ctors - if both executable and library
contain an identically mangled `pragma(crt_constructor)` function (doesn't even
need to be in the same module - and name collision is quite likely due to the
`extern(C)` requirement...), the executable one is invoked twice. Again
DMD-specific, works with LDC.
--
More information about the Digitalmars-d-bugs
mailing list