This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: delete [] operator Bug Report
- To: scottxb at mpx dot com dot au
- Subject: Re: delete [] operator Bug Report
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Sat, 11 Mar 2000 13:10:11 +0100
- CC: egcs-bugs at egcs dot cygnus dot com
- References: <38C9E9B5.FA0BFD5E@mpx.com.au>
> 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