g++ and aliasing bools
Alexandre Oliva
aoliva@redhat.com
Mon Jan 28 22:02:00 GMT 2002
On Jan 28, 2002, Mark Mitchell <mark@codesourcery.com> wrote:
> Once we introduce vtables, more complicated things can happen. (We
> have to make sure that the vptr fields are in the same alias set.
> We may already do this; I remember fixing some problem like this
> at some point.) If we have virtual bases, things are very complex;
> layouts are semi-dynamic. It may be that it "just works", but I
> will continue to play devil's advocate. You can continu to make
> persusasive arguments for safety. :-)
It can still be mapped to C struct, given appropriate types for the
vptr fields, right? So Joe's point still holds. We may have to be
careful about how we assign aliases to these hidden fields, but it's
not like they are not representable in C :-)
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
More information about the Gcc
mailing list