This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13664] virtual in private base can be overridden in further-derived class
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jan 2004 16:10:23 -0000
- Subject: [Bug c++/13664] virtual in private base can be overridden in further-derived class
- References: <20040113003708.13664.james_avera2@yahoo.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-01-13 16:10 -------
The testcase is invalid but for other reasons. Overloading and access
control are completely separate things. You can thus overload a function
in the base class even if you can't access it. The error in 3.3 and
3.4 is due to the fact that you try to take the address of base::i;
overriding base::func by distant::func is still ok.
I'll reopen the bug...
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13664