https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70906

            Bug ID: 70906
           Summary: ice in add_expr, at tree.c:7925
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 38394
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38394&action=edit
gzipped C++ source code

The attached code, when compiled by gcc trunk dated 20160502,
does this:

/usr/include/boost/intrusive/detail/hook_traits.hpp:117:77: internal compiler
error: in add_expr, at tree.c:7925
          (static_cast<node_reference>(static_cast<hook_reference>(value.*P)));
                                                                             ^
0x110ce65 inchash::add_expr(tree_node const*, inchash::hash&, unsigned int)
        ../../src/trunk/gcc/tree.c:7925
0x110c634 inchash::add_expr(tree_node const*, inchash::hash&, unsigned int)
        ../../src/trunk/gcc/tree.c:8002
0xaed3a0 operand_equal_p(tree_node const*, tree_node const*, unsigned int)
        ../../src/trunk/gcc/fold-const.c:2762
0x8c24f5 candidate_equal_p
        ../../src/trunk/gcc/c-family/c-common.c:2927

Flag -Wall required. This bug might be related to #70843

Reply via email to