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++ does not resolve operator = correctly


> 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

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