This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34927] New: Duplicate error message about abstract class
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jan 2008 22:12:11 -0000
- Subject: [Bug c++/34927] New: Duplicate error message about abstract class
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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