Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!aria!dumbcat!marc From: marc@dumbcat.sf.ca.us (Marco S Hyman) Newsgroups: comp.lang.c++ Subject: Re: Can a virtual base class have a non-virtual base ? Summary: yes Message-ID: <1056@dumbcat.sf.ca.us> Date: 15 Jun 91 04:48:02 GMT References: Distribution: comp Organization: MH Software, Hayward, CA. Lines: 12 In article pjg@daedalus.osf.org (Paulo Guedes) writes: > Is it legal for a class that is used as a virtual base to have itself > a non-virtual base ? The following program ilustrates the problem: Yes. At least your example is accepted by a cfront 2.0 derived compiler and gave the results you expected (all four printfs are "R::f1"). I think the output you saw was a g++ bug. // marc -- // home: marc@dumbcat.sf.ca.us pacbell!dumbcat!marc // work: marc@ascend.com uunet!aria!marc