This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/58114] New: allow turning the warning about deleting a pointer of incomplete type into an error
- From: "tilman.vogel at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 09 Aug 2013 17:00:58 +0000
- Subject: [Bug c++/58114] New: allow turning the warning about deleting a pointer of incomplete type into an error
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58114
Bug ID: 58114
Summary: allow turning the warning about deleting a pointer of
incomplete type into an error
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: tilman.vogel at web dot de
While many warning messages have a way to control their emission and treatment,
e.g. "warning: multi-line comment [-Wcomment]", some warnings do not, in
particular:
warning: possible problem detected in invocation of delete operator: [enabled
by default]
warning: 'value' has incomplete type [enabled by default]
As a consequence of being enabled by default, there does not seem to be an
associated warning class that I could pass to "-Werror=".
I'd really like to be able to say
"-Werror=delete-with-incomplete-type"