[Bug c++/8979] [ABI] Layout of class with virtual inheritance problem on IA64

nathan at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Oct 30 12:19:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8979



------- Additional Comments From nathan at gcc dot gnu dot org  2003-10-30 12:14 -------
the same layout is reported on FSF head with abi=0

Class S
   size=8 align=4
   base size=8 base align=4
S (0x402e2740) 0

Class T
   size=24 align=8
   base size=12 base align=8
T (0x402e2ac0) 0
    vptridx=0u vptr=((&T::_ZTV1T) + 24u)
  S (0x402e2b00) 12 virtual
      vbaseoffset=-0x00000000000000018

Class U3
   size=32 align=8
   base size=8 base align=8
U3 (0x402e7080) 0 nearly-empty
    vptridx=0u vptr=((&U3::_ZTV2U3) + 32u)
  T (0x402e70c0) 8 virtual
      subvttidx=16u vptridx=8u vbaseoffset=-0x00000000000000018
vptr=((&U3::_ZTV2U3) + 56u)
    S (0x402e7100) 20 virtual
        vbaseoffset=-0x00000000000000020
  S (0x402e7100) alternative-path

I believe this is correct. Why do you think there should be padding before S?



More information about the Gcc-bugs mailing list