From patchwork Sat Nov 19 22:04:27 2011
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Jonathan Wakely
X-Patchwork-Id: 126621
Return-Path:
X-Original-To: incoming@patchwork.ozlabs.org
Delivered-To: patchwork-incoming@bilbo.ozlabs.org
Received: from sourceware.org (server1.sourceware.org [209.132.180.131])
by ozlabs.org (Postfix) with SMTP id 78DBDB7212
for ;
Sun, 20 Nov 2011 09:04:46 +1100 (EST)
Received: (qmail 23358 invoked by alias); 19 Nov 2011 22:04:41 -0000
Received: (qmail 23346 invoked by uid 22791); 19 Nov 2011 22:04:40 -0000
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL, BAYES_00,
DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM,
RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
Received: from mail-ww0-f51.google.com (HELO mail-ww0-f51.google.com)
(74.125.82.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP;
Sat, 19 Nov 2011 22:04:28 +0000
Received: by wwe6 with SMTP id 6so6746238wwe.8 for ;
Sat, 19 Nov 2011 14:04:27 -0800 (PST)
MIME-Version: 1.0
Received: by 10.216.139.133 with SMTP id c5mr1222934wej.25.1321740267052;
Sat, 19 Nov 2011 14:04:27 -0800 (PST)
Received: by 10.216.85.76 with HTTP; Sat, 19 Nov 2011 14:04:27 -0800 (PST)
Date: Sat, 19 Nov 2011 22:04:27 +0000
Message-ID:
Subject: [wwwdocs] put -Wdelete-non-virtual-dtor in gcc-4.7/changes.html
From: Jonathan Wakely
To: gcc-patches
Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id:
List-Unsubscribe:
List-Archive:
List-Post:
List-Help:
Sender: gcc-patches-owner@gcc.gnu.org
Delivered-To: mailing list gcc-patches@gcc.gnu.org
Applied
Index: changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.7/changes.html,v
retrieving revision 1.60
diff -u -r1.60 changes.html
--- changes.html 19 Nov 2011 15:15:13 -0000 1.60
+++ changes.html 19 Nov 2011 22:02:48 -0000
@@ -312,6 +312,14 @@
of types with non-trivial destructors, as they are already destroyed at end
of full-expression; the change is that now the storage is released as
well.
+
+ A new command-line option -Wdelete-non-virtual-dtor
+ has been added to warn when delete
is used to destroy
+ an instance of a class which has virtual functions and non-virtual
+ destructor. It is unsafe to delete an instance of a derived class
+ through a pointer to a base class if the base class does not have a
+ virtual destructor. This warning is enabled by -Wall
.
+
Runtime Library (libstdc++)