From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26207 invoked by alias); 29 Jul 2014 07:29:09 -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 26120 invoked by uid 48); 29 Jul 2014 07:28:59 -0000 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61945] New: tree check fail with -Woverloaded-virtual Date: Tue, 29 Jul 2014 07:29: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-Version: 4.9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail 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-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-07/txt/msg01888.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61945 Bug ID: 61945 Summary: tree check fail with -Woverloaded-virtual Product: gcc Version: 4.9.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Created attachment 33201 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33201&action=edit gzipped C++ source code For the attached code, compiled with trunk dated 20140727, built with --enable-checking=yes, the compiler says /home/dcb/rpmbuild/BUILD/permlib-0.2.8/include/permlib/abstract_bsgs.h:53:7: int ernal compiler error: tree check: expected function_decl, have template_decl in warn_hidden, at cp/class.c:2825 class AbstractBSGS : public AbstractPermutationGroup { ^ 0xed411b tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../src/trunk/gcc/tree.c:9169 0x63f4a3 tree_check(tree_node*, char const*, int, char const*, tree_code) ../../src/trunk/gcc/tree.h:2728 0x63f4a3 warn_hidden ../../src/trunk/gcc/cp/class.c:2825 Compiler flag -Woverloaded-virtual required.