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.

Reply via email to