This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22540] No access to public static members/functions of privately inherited base 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: 18 Jul 2005 14:59:40 -0000
- Subject: [Bug c++/22540] No access to public static members/functions of privately inherited base class
- References: <20050717231538.22540.mdweb@web.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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