This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32085] "warning: deleting void* is undefined" sometimes bogus
- From: "andrew dot stubbs at st dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 May 2007 15:16:48 -0000
- Subject: [Bug c++/32085] "warning: deleting void* is undefined" sometimes bogus
- References: <bug-32085-10252@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from andrew dot stubbs at st dot com 2007-05-25 16:16 -------
I'm confused.
It might be the case that there is a type for which this warning is valid - I
don't know C++ well enough to confirm or deny that - but in *this* example, and
perhaps others like it, the warning is mis-leading. I've tested the code, and
the delete operator does exactly what I would expect (or maybe that's what's
wrong?)
Is it not possible to distinguish cases where the warning is warranted and
cases where it is not?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32085