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++/12458] h8300-hms-gcc Bug


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 {


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