I get a duplicate error message for this code: -------------- class A {}; struct C : A { virtual ~C () = 0; } c; ------------- bangerth/tmp> c++ -c x.cc x.cc:6: error: cannot declare variable 'c' to be of abstract type 'C' x.cc:4: note: because the following virtual functions are pure within 'C': x.cc:5: note: virtual C::~C() x.cc:5: note: virtual C::~C()
I'd say one is enough. W. -- Summary: Duplicate error message about abstract class Product: gcc Version: 4.1.2 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bangerth at dealii dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34927