This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12458] h8300-hms-gcc Bug
- From: "lerdsuwa at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Sep 2003 14:11:11 -0000
- Subject: [Bug c++/12458] h8300-hms-gcc Bug
- References: <20030930094520.12458.sengyaw@yahoo.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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 {