[Bug c++/13664] virtual in private base can be overridden in further-derived class
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Tue Jan 13 16:10:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list