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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 8 17:27:41 UTC 2021


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

Richard Cattermole <alphaglosined at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alphaglosined at gmail.com

--- Comment #3 from Richard Cattermole <alphaglosined at gmail.com> ---
Minified:

$ dmd -betterC -lib mylib1.d mylib2.d
$ dmd -I. mylib1 myexe.d -main

module myexe;
import mylib2;

module mylib1;
static this() {}

module mylib2;
import mylib1;

--


More information about the Digitalmars-d-bugs mailing list