vcall offset question wrt. vtables
Jason Merrill
jason at cygnus.com
Mon Feb 28 22:54:40 UTC 2000
>>>>> Coleen Phillimore <coleen at zko.dec.com> writes:
> (add on V3's shared vtable)
> vbase offset for V2
> ??? vcall offset to i
These are backwards. The vbase offset is part of the V3 primary vtable,
while the vcall offset for i is only added when V3 is used as a virtual
base.
> Does this mean V3's vtable does not have the same format as if it
> weren't virtual derived?
No. Though it does mean that if we share a vtable with a virtual base, the
vbase and vcall offsets may be interleaved.
Jason
More information about the cxx-abi-dev
mailing list