[Bug c++/18044] method signatures with argument overloading does not work across class boundaries
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Oct 18 11:36:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-18 11:36 -------
Invalid, test in Bar hides test in Foo.
Either use:
using Foo::test;
in front of the declaration of test in Bar.
Or use the full name of test in Foo:
class Foo
{
public:
void test(char *x)
{
}
};
class Bar : public Foo
{
public:
void test(double t)
{
Foo::test("x");
}
};
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18044
More information about the Gcc-bugs
mailing list