This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g++ does not resolve operator = correctly
- To: xavier at CoWare dot com
- Subject: Re: g++ does not resolve operator = correctly
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Tue, 4 Jul 2000 00:35:06 +0200
- CC: gcc-bugs at gcc dot gnu dot org
- References: <3960D07E.1DABD89F@CoWare.com>
> g++ 2.95.2 resolves the assignment in the following
> piece of code to the pure virtual assign on the base
> class, instead of making it a virtual call.
Thanks for your bug report. This is not a bug in the compiler, but in
your code. In addition to the assignment operators you have declared,
there is also the implicit copy assignment operator, which will invoke
the base copy assignment operator.
If you question this line of reasoning, please discuss it in one of
the public C++ fora first, eg. comp.lang.c++.moderated, or
comp.std.c++.
Regards,
Martin