From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17022 invoked by alias); 16 Apr 2014 15:28:58 -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 16643 invoked by uid 48); 16 Apr 2014 15:28:54 -0000 From: "fuscated at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/58114] allow turning the warning about deleting a pointer of incomplete type into an error Date: Wed, 16 Apr 2014 15:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: fuscated at gmail dot com 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: cc Message-ID: In-Reply-To: References: 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: 2014-04/txt/msg01193.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58114 Teodor Petrov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fuscated at gmail dot com --- Comment #1 from Teodor Petrov --- 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?