From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11890 invoked by alias); 8 Apr 2013 16:26:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 11553 invoked by uid 48); 8 Apr 2013 16:26:46 -0000 From: "ayurchen at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/56879] New: -Weffc++ warns about non-virtual base class destructor even if it is protected Date: Mon, 08 Apr 2013 16:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: ayurchen at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-04/txt/msg00656.txt.bz2 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.