[Issue 22367] The __ModuleInfo member spuriously linked for modules compiler with -betterC
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 1 03:47:01 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22367
--- Comment #14 from Richard Cattermole <alphaglosined at gmail.com> ---
(In reply to Walter Bright from comment #13)
> The change to fix this bug report, then, is for betterC modules to generate
> a ModuleInfo if it has a `static this` constructor. And to add these
> instructions to the documentation.
This should not be automatic.
-betterC is a collection of switches all rolled in together. One of these is
turning off of ModuleInfo generation. This is how it works in both LDC and GDC.
It needs to be opt-in via switches. Otherwise, behavior that wasn't expected
may occur.
--
More information about the Digitalmars-d-bugs
mailing list