[Bug c++/12458] h8300-hms-gcc Bug
lerdsuwa at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Sep 30 14:54:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12458
lerdsuwa at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2003-09-30 14:11 -------
Not a bug. In the class declaration:
class D_c : public A_c {
GCC does name lookup in the current scope which is inside C_c.
It finds A_c coming from B_c which is private and not accessible.
(This is the same mechanism that a derived class can names
like member functions of base classes.)
You can force name lookup to find the global A_c by:
class D_c : public ::A_c {
More information about the Gcc-bugs
mailing list