This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/78533] New: tree check fail in int_fits_type_p, at tree.c:9153


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

            Bug ID: 78533
           Summary: tree check fail in int_fits_type_p, at tree.c:9153
           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 40153
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40153&action=edit
gzipped C++ source code

The attached C++ code, when compiled by revision 242818 and later, seems
to fail. It was ok with revision 242740 and earlier.

/home/dcb/gcc/results.242818/include/c++/7.0.0/bits/stl_algo.h:1837:5: internal
compiler error: tree check: expected integer_type or enumeral_type or
boolean_type or real_type or fixed_point_type, have pointer_type in
int_fits_type_p, at tree.c:9153
     __insertion_sort(_RandomAccessIterator __first,
     ^~~~~~~~~~~~~~~~
0x1103a7c tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../trunk/gcc/tree.c:9815
0x1116f9a tree_check5(tree_node const*, char const*, int, char const*,
tree_code, tree_code, tree_code, tree_code, tree_code)
        ../../trunk/gcc/tree.h:3393
0x1116f9a int_fits_type_p(tree_node const*, tree_node const*)
        ../../trunk/gcc/tree.c:9153
0x1273cec gimple_simplify_153
        /home/dcb/gcc/working/gcc/gimple-match.c:6868

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]