Path: utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!wuarchive!sdd.hp.com!hplabs!hpda!hpcuhb!hpcllla!hpclisp!hpclscu!shankar From: shankar@hpclscu.HP.COM (Shankar Unni) Newsgroups: comp.lang.c++ Subject: Re: Multiple inheritance with virtual bases Message-ID: <58170035@hpclscu.HP.COM> Date: 26 Oct 90 05:06:56 GMT References: Organization: Hewlett-Packard Calif. Language Lab Lines: 18 > IMHO: the 2K size is a bug. > E&S's ARM, 10.1: " > > class V { /* ... */ }; > class A : virtual public V { /* ... */ }; > class B : virtual public V { /* ... */ }; > class C : public A, public B { /* ... */ }; > > Here class C has only one sub-object of class V. " Yes, and if you feed this case to cfront, it gives the "right" answer (1020). It's when C derives from a virtual A and a virtual B that things get interesting. I think it's a cfront bug, too. ----- Shankar Unni. HP Calif. Language Lab.