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]

Re: g++ bug: version 2.95.2 (and earlier)


> However, renaming Foo::DoFoo(int) and Bar::DoFoo(int) to something which
> is different from the non-virtual function in the base class works.  So,
> renaming the virtual functions in both base and derived classes to DoFoo1()
> works.  (Also, commenting out either line 8 or line 15 compiles ok.)

Thanks for your bug report. This is a bug in your code, not in
g++. Methods of derived classes hide methods of base classes; please
ask in one of the public C++ fora for a more elaborate explanation,
eg. comp.lang.c++.moderated, or comp.std.c++.

Regards,
Martin

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