From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29096 invoked by alias); 8 Feb 2010 13:58:46 -0000 Received: (qmail 29058 invoked by uid 48); 8 Feb 2010 13:58:34 -0000 Date: Mon, 08 Feb 2010 13:58:00 -0000 Message-ID: <20100208135834.29057.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: "albrt2000 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/msg00711.txt.bz2 ------- Comment #9 from albrt2000 at gmail dot com 2010-02-08 13:58 ------- (In reply to comment #6) > Interesting. Thus I get Core 906 [Ready] as meaning that this snippet is just > illegal, and should be rejected, in other terms, this is an accept invalid, > right? > Hi, 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 can not default virtual destructor, well, the feature seems less interesting. I opened a discussion about this in comp.std.c++ (C++0x : virtual destructor and =default) and Scott Meyers replies that this (virtual ~A() = default;) should be correct. Those that should be a valid gcc problem. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42983