Bug in invoking virtual functions in g++ 2.8.1/egcs 1.0.3 release

Jason Merrill jason@cygnus.com
Thu Aug 6 14:10:00 GMT 1998


>>>>> Alexandre Oliva <oliva@dcc.unicamp.br> writes:

> Jonathan Mohr <mohrj@Berio.Augustana.AB.CA> writes:
>> When the following program is compiled on an i586 machine running Linux
>> with g++ version 2.7.2.3, it (correctly) invokes Derived::operator= and

> The old behavior is incorrect.  Because you have not defined
> Derived::operator=([const] [volatile] Derived&), a ISO C++ compiler is
> required to implicitly define one, and so does egcs.

Yup.  -Wsynth will warn about this case.

Jason



More information about the Gcc-bugs mailing list