[Issue 22367] The __ModuleInfo member spuriously linked for modules compiler with -betterC

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 21 19:53:27 UTC 2021


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

--- Comment #5 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Mathias LANG from comment #4)
> Why does `mylib1` has a module ctor ? Shouldn't `-betterC` reject it ?

I think someone had the ingenuity to make module ctors
`pragma(crt_constructor)` in betterC mode.

--


More information about the Digitalmars-d-bugs mailing list