From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11162 invoked by alias); 9 Aug 2013 17:01:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 11058 invoked by uid 48); 9 Aug 2013 17:00:59 -0000 From: "tilman.vogel at web dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/58114] New: allow turning the warning about deleting a pointer of incomplete type into an error Date: Fri, 09 Aug 2013 17:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.7.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: tilman.vogel at web dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-08/txt/msg00554.txt.bz2 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"