[Issue 18412] [REG2.077.0] immutable array in library becomes null when referenced in static constructor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 5 10:33:16 UTC 2020


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

--- Comment #6 from Walter Bright <bugzilla at digitalmars.com> ---
Actually, that's wrong.

    dmd -lib m2.d

puts two object files in the library, m2.obj and m2_1_66.obj. The second one is
the missing code - but it's reference to keywords should be an extern, but is
not, just an unnamed static datum past the end of the data segment (!).

Apparently the code that resets the external references between object module
generation broke, which is consistent with the PR that caused the regression:

https://github.com/dlang/dmd/pull/7150

--


More information about the Digitalmars-d-bugs mailing list