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: delete [] operator Bug Report


> 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

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