This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: abstract base classes & MI
- To: Mike Stump <mrs at wrs dot com>
- Subject: Re: abstract base classes & MI
- From: Charles Kerr <ckerr at osrpg001 dot nssl dot noaa dot gov>
- Date: Fri, 19 Feb 1999 19:14:29 -0600
- Cc: ckerr at enterprise dot nssl dot noaa dot gov, egcs-bugs at egcs dot cygnus dot com, egcs at egcs dot cygnus dot com
- References: <199902200035.QAA29830@kankakee.wrs.com>
On Fri, Feb 19, 1999 at 04:35:06PM -0800, Mike Stump wrote:
[diamond-shaped inheritance snipped]
> > I don't see the ambiguity.
>
> Which subobject did you want the virtual foo valled with? A_impl or
> a_interface? How does the code indicate that? (It doesn't.) Put in
> a virtual base for A_impl and A_interface and link A_impl to
> A_interface and it'll work as written.
Whoops; the code I wrote had "A_impl : public A_interface" but apparently
lost it somewhere down the line. Making the inheritance virtual was the
step I was missing. Thanks, and sorry for using this list for a C++ Q&A.