This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17314] bad error
- From: "lerdsuwa at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Sep 2004 12:13:28 -0000
- Subject: [Bug c++/17314] bad error
- References: <20040904040022.17314.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-09-04 12:13 -------
Not a bug. Mentioning the base class as simply 'virtual A'
means 'private virtual A'. Perhaps you want the following code
which compiles on GCC:
class A {
protected:
A(){}
};
class B : public virtual A {
};
class C : public B {};
int main () {
C c;
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17314