GCC C++ Can't overload inherited member functions ... WHAT????
Will
e1wwater@dingo.cc.uq.edu.au
Fri Feb 4 00:55:00 GMT 2000
GCC 2.95.2 C++ seems to have given up allowing you to access base class
member functions that you overload in derived classes. Am I mistaken
that this is wrong? To see what I mean, try compiling the following
under GCC 2.95.2 ...
BTW: Trying to apply "using A::pass;" in the derived class does not
rectify the problem.
class ArgumentTypeA
{
};
class ArgumentTypeB
{
};
class A
{
public:
void pass(const ArgumentTypeA& a) const
{
}
};
class B :
public A
{
public:
void pass(const ArgumentTypeB& b) const
{
}
};
int main()
{
ArgumentTypeA a;
B b;
b.pass(a);
}
More information about the Gcc-bugs
mailing list