missing warning

Alexander V. Lukyanov lav@long.yar.ru
Wed Nov 25 16:06:00 GMT 1998


On Wed, Nov 25, 1998 at 10:26:00PM +0100, Valentin Bonnard wrote:
> >So a warning could be wrong
> >in any of the cases, thus better to have no warning.
> 
> Sorry I don't follow this resonning.

I mean, someone who uses something like this for purpose will not like the
warning. E.g. it's possible to have base class without virtual destructor
and never delete pointer to base class, or delete it when all derived
classes don't have dtors too, etc. and the like.

Well, maybe I'm wrong on this. Probably there are a lot of warnings for
possibly legal code :)  At least such warnings require a commonly accepted
idea of good style, IMHO.

   Alexander.



More information about the Gcc-bugs mailing list