This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g++ bug: version 2.95.2 (and earlier)
- To: raman at cs dot wisc dot edu
- Subject: Re: g++ bug: version 2.95.2 (and earlier)
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Thu, 13 Apr 2000 22:12:52 +0200
- CC: gcc-bugs at gcc dot gnu dot org, raman at cs dot wisc dot edu
- References: <200004131831.NAA02994@froth.cs.wisc.edu>
> 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