This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13664] virtual in private base can be overridden in further-derived class


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]