[Issue 6461] multiple definitions with typeid and multiobj

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 31 07:29:23 PDT 2013


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



--- Comment #11 from Rainer Schuetze <r.sagitario at gmx.de> 2013-05-31 07:29:21 PDT ---
(In reply to comment #10)
> IIRC TypeInfo instances were the only symbols where s->getModule() returns
> NULL.

I had the impression that the init-data has the same problem, but I could also
have been confused by other issues (the multiobj library creation doesn't work
at all for omf atm).

> 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.

The problem also exists for derived types like const(Struct) or Struct* (maybe
also for basic types?). You cannot generate all possible types into the module
itself (and you might not have it compiled anyway if the declaration is only in
a di file). E.g. for const(Struct) you'll have to at least generate the
TypeInfo_Const that refers to TypeInfo_Struct somewhere into the current
compiler output.

-- 
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