[Issue 6461] multiple definitions with typeid and multiobj

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 31 05:17:59 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=6461



--- Comment #10 from Martin Nowak <code at dawg.eu> 2013-05-31 05:17:57 PDT ---
(In reply to comment #9)
> (In reply to comment #6)
> > Generating a UUID instead of the simple static counter in obj_write_deferred
> > seems to fix the problem.
> 
> Probably the better fix might be to not generate pseudo-ModuleInfo at all. In
> addition, without a module the TypeInfo symbol is merged into the previous
> (possibly unrelated) object file.

Yeah UUIDs might work but we should instead remove the ugly hack that causes
the multiple definitions, i.e. "mname = lastmname;".

IIRC TypeInfo instances were the only symbols where s->getModule() returns
NULL.
But a TypeInfo instance should belong to the module of the described Type.
I hope that we can remove the hack if we fix that behavior and assert
s->getModule.

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


More information about the Digitalmars-d-bugs mailing list