From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10071 invoked by alias); 8 Feb 2010 14:05:14 -0000 Received: (qmail 8253 invoked by uid 48); 8 Feb 2010 14:04:55 -0000 Date: Mon, 08 Feb 2010 14:05:00 -0000 Message-ID: <20100208140455.8248.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/42983] [C++0x] Defaulted virtual destructor isn't virtual In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jwakely dot gcc at gmail dot com" 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 X-SW-Source: 2010-02/txt/msg00713.txt.bz2 ------- Comment #11 from jwakely dot gcc at gmail dot com 2010-02-08 14:04 ------- (In reply to comment #9) > I'm not sure to understand your last comment (sorry I 'm not a natural english > speaker). Do you mean that virtual ~A() = default; should be an error ? If we Yes. GCC implements the resolution to core issue 906 > can not default virtual destructor, well, the feature seems less interesting. You can do it, but not on the first declaration: struct A { virtual ~A(); }; A::~A() = default; I think this should be OK (but maybe not in GCC 4.4 only in 4.5) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42983