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++/22540] No access to public static members/functions of privately inherited base class


------- Additional Comments From bangerth at dealii dot org  2005-07-18 14:59 -------
Andrew is correct: if you write A::foo, then access happens within 
the class hierarchy, where foo is inaccessible. If you want to access 
foo from the outside, where it is accessible, you need to write ::A::foo 
instead. 
 
W. 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22540


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