(Mac) TypeInfo bug ?

Anders F Björklund afb at algonet.se
Fri Dec 15 02:16:24 PST 2006


David Friedman wrote: (as in, a year ago)

>> (i.e. should one be able to expect that the TypeInfo
>> is *identical* to typeid, or will it only be equal to)

> This is the same GDC issue that causes templates to not work (you're 
> using gcc 3.x, right?).  Both modules need to emit TypeInfo for char[]* 
> because there is no single "correct" place to do so.  Without "link 
> once" support, GDC emits private copies in each module.
> 
> I have not been able think of simple a solution for this.  A complex 
> solution might involve registering TypeInfo pointers using the mangled 
> name as a key...

I don't think it will ever be fixed for GCC 3.3 / Mac OS X 10.3 ?

In the meantime I'm adding a small note to gdcmac that templates
needs Mac OS X 10.4 / GCC4 to work and aren't supported fully for
Mac OS X 10.2/10.3 and that this will break readf/DMDScript/etc.

But if someone has a patch to enable "link once" for GCC 3.3.6
on Darwin, I would be happy to apply it to the gdcmac 0.20 build.
(i.e. the same way that I ported .framework support over earlier)

--anders


More information about the D.gnu mailing list