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"