[Bug c++/12386] methode overloading
gdr at integrable-solutions dot net
gcc-bugzilla@gcc.gnu.org
Wed Sep 24 09:35: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=12386
------- Additional Comments From gdr at integrable-solutions dot net 2003-09-24 08:14 -------
Subject: Re: New: methode overloading
"lauterba at web dot de" <gcc-bugzilla@gcc.gnu.org> writes:
| PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
|
| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12386
|
| Summary: methode overloading
| Product: gcc
| Version: 3.3.2
| Status: UNCONFIRMED
this report should be resolved INVALID.
[...]
| Is this a bug or C++ standard?
It is not a bug. It is standard C++. The name test in B, hides the
name name test in the base class A. You need explicit qualification.
Just like
namespace M {
void f();
namespace N {
void f(int) { f(); }
}
}
is invalid.
-- Gaby
More information about the Gcc-bugs
mailing list