This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: g++ and aliasing bools


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]