Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!usc!apple!fernwood!lia!steve From: steve@lia (Stephen Williams) Newsgroups: comp.lang.c++ Subject: Re: Bug in multiple inheritence Message-ID: <1991Jan18.220737.8750@lia> Date: 18 Jan 91 22:07:37 GMT References: <1991Jan17.190452.5204@lia> Reply-To: steve@lia.com (Stephen Williams) Organization: Litton/Integrated Automation, Alameda, California Lines: 19 In article <1991Jan17.190452.5204@lia> steve@lia.com (Stephen Williams) writes: >The moral: although assignment of derived class instance to base >class instance is allowed by the compiler, it is probably illegal in the >language, and again I complain about the compiler. > A co-worker pointed out to me page 297 of Ellis+Stroustrup: ... objects of a derived class can be assigned to objects of a public base class. I now believe that assignment of a derived class object to a base class object is broken for multiple inheritence. This bug clearly shows up in SUN's 2.0 and 2.1(beta) C++ compiler. Mail me if you want to see a sample program demonstrates this bug. --Steve Williams steve@lia.com