delete [] operator Bug Report

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Sat Mar 11 04:13:00 GMT 2000


> If this bug is not going to be fixed could
> you please let me know ?

Thanks for your bug report. It is not a bug in the compiler, bug in
your code. In C++, the static and the dynamic type of the object must
be identical in an array-delete. The virtual dtor is only used for
non-arrays.

If you question this analysis, 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