This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/56879] New: -Weffc++ warns about non-virtual base class destructor even if it is protected
- From: "ayurchen at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 08 Apr 2013 16:26:46 +0000
- Subject: [Bug c++/56879] New: -Weffc++ warns about non-virtual base class destructor even if it is protected
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56879
Bug #: 56879
Summary: -Weffc++ warns about non-virtual base class destructor
even if it is protected
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: ayurchen@gmail.com
Created attachment 29827
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29827
test source code and compiler output
Protected destructor means that the class can't be deleted polymorphically, so
this warning is unnecessary. Together with -Werror it becomes a pain.