[Bug c++/58114] allow turning the warning about deleting a pointer of incomplete type into an error
fuscated at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Apr 16 15:28:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58114
Teodor Petrov <fuscated at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fuscated at gmail dot com
--- Comment #1 from Teodor Petrov <fuscated at gmail dot com> ---
This option is very important, because this warning allowed us to fix one
serious leak in our application. And to prevent this problem to reappear in the
future we want to force this warning to be error, but unfortunately we are not
able when building with GCC.
All other compilers we use have this feature. And btw in clang the option is
named -Wdelete-incomplete, so you can reuse it to minimize the difference
between the compilers.
BTW: Do someone has an explanation why this is allowed in the standard?
More information about the Gcc-bugs
mailing list