g++ does not resolve operator = correctly
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Mon Jul 3 15:39:00 GMT 2000
> 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
More information about the Gcc-bugs
mailing list