[Bug c++/42983] [C++0x] Defaulted virtual destructor isn't virtual
albrt2000 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Feb 8 13:58:00 GMT 2010
------- 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
More information about the Gcc-bugs
mailing list