[Issue 18066] duplicate symbol error when symbol is in a ".o" and a ".a" ; linker should accept it to allow partial recompilation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 12 02:52:29 UTC 2017


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

Timothee Cour <timothee.cour2 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|regression: duplicate       |duplicate symbol error when
                   |symbol __Dmain : worked in  |symbol is in a ".o" and a
                   |dmd.071.2, fails in dmd.072 |".a" ; linker should accept
                   |                            |it to allow partial
                   |                            |recompilation

--- Comment #2 from Timothee Cour <timothee.cour2 at gmail.com> ---
EDIT: the reason i thought dmd2_071_2 accepted it was because the syntax -of=
was introduced in 072, and shell magic made the example work somehow by
accident, so reclassified as blocker instead of regression.

Nevertheless, IMO partial recompilation should be accepted. If not what are
workarounds?

--


More information about the Digitalmars-d-bugs mailing list