This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Why do I get: cannot declare variable ? sc¹ to be of abstract type...
- From: John Love-Jensen <eljay at adobe dot com>
- To: David Daney <ddaney at avtrex dot com>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Cc: "Johannes P. Schmidt" <jschmidt at avtrex dot com>
- Date: Tue, 31 Jul 2007 11:56:36 -0500
- Subject: Re: Why do I get: cannot declare variable ? sc¹ to be of abstract type...
Hi Dave,
> I would think that I1::a() is not virtual because it is defined in the super
class C1. What is going on here?
I1::a was defined in super class C1 for the C1 half of the multiple
inheritance (via C2::C1::I2::defined a), but the I2 half's (via
C2::I2::I1::pure virtual a) a has not been concretely defined anywhere up
that inheritance chain.
HTH,
--Eljay