[Issue 1522] New: multiple TypeInfo definitions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 20 07:41:09 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1522
Summary: multiple TypeInfo definitions
Product: D
Version: 2.004
Platform: PC
URL: http://mainia.de/classinfoex-0.10.d
OS/Version: Linux
Status: NEW
Keywords: wrong-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: jascha at mainia.de
compiling the example from the doc-comment makes the linker complain about
multiple defined symbols. on windows this does not happen.
the "mixin Reflect;" creates static constructors and saves the TypeInfos for
all functions of the class in a static assoc array. this includes opEqual and
opCmp that both are of type FC6ObjectZi and thus have the same TypeInfo. in
this case the _D20TypeInfo_FC6ObjectZi6__initZ is defined twice (or more
often), which provokes the linker error.
--
More information about the Digitalmars-d-bugs
mailing list