------- 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

Reply via email to