This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22395] New: -Weffc++ shouldn't warn about non-virtual dtor of private subclasses
- From: "mutz at kde dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jul 2005 18:54:01 -0000
- Subject: [Bug c++/22395] New: -Weffc++ shouldn't warn about non-virtual dtor of private subclasses
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When using -Weffc++, private inheritance signals a warning about base class
dtor non-virtualness:
class Foo { public: ~Foo() {} };
class Bar : public Foo {};
warning: base class 'class Foo' has a non-virtual destructor.
This, of course, is a useless warning since Bar can never be deleted through a
Foo*.
--
Summary: -Weffc++ shouldn't warn about non-virtual dtor of
private subclasses
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mutz at kde dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22395