[Issue 14828] duplicate symbol __ModuleInfoZ depending on ordering of files passed to dmd

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jul 31 01:58:39 PDT 2015


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

--- Comment #14 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Walter Bright from comment #13)
> The module info symbol should only be generated by compiling foo2 from the
> command line. Why is it generated into out.obj?

foo2.d is compiled twice. One generated obj is stored into the lib file, one
another is stored into out.obj.

This is the issue case from the original case.

all1_order_flipped:
    ${dmd} -oflibproj6.a -lib -g project2.d foo2.d foo1.d
    ${dmd} -ofout -g libproj6.a foo2.d main.d

--


More information about the Digitalmars-d-bugs mailing list