https://d.puremagic.com/issues/show_bug.cgi?id=11543



--- Comment #3 from Martin Nowak <c...@dawg.eu> 2013-12-24 11:19:55 PST ---
This happens because of copy relocations, i.e. linker generates a copy of the
ModuleInfo symbol in the executable's .bss section.
This causes a false alarm in the druntime code that checks for duplicated
ModuleInfos.
There are two/three ways to fix this.

- Make ModuleInfos immutable, which is something we should do anyhow.
- Avoid references to foreign ModuleInfos, a bit more complex but necessary
  for https://github.com/D-Programming-Language/dmd/pull/2561.
- Adapt the druntime code to detect this false error. Somewhat dirty hack.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to