------- 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