This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/58114] allow turning the warning about deleting a pointer of incomplete type into an error
- From: "fuscated at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 16 Apr 2014 15:28:51 +0000
- Subject: [Bug c++/58114] allow turning the warning about deleting a pointer of incomplete type into an error
- Auto-submitted: auto-generated
- References: <bug-58114-4 at http dot gcc dot gnu dot org/bugzilla/>
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?