GCC C++ Can't overload inherited member functions ... WHAT????
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Fri Feb 4 16:23: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?
Thanks for your bug report. Yes, you are mistaken; g++ is correctly
detecting the error in your code. For a detailed discussion, please
ask in one of the C++ fora (such as comp.lang.c++.moderated). In
short, this overloading is (and never was) possible in C++; you'd have
to use using-declarations. Due to real bug in g++, those
using-declarations don't work (see bugs.html); you can use delegation
in the derived class.
Regards,
Martin
More information about the Gcc-bugs
mailing list