[Bug c/91743] New: ice: tree check: expected ssa_name, have mult_expr in get_nonzero_bits, at tree-ssanames.c:524

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Wed Sep 11 16:55:00 GMT 2019


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

            Bug ID: 91743
           Summary: ice: tree check: expected ssa_name, have mult_expr in
                    get_nonzero_bits, at tree-ssanames.c:524
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

For this two line C code:

a, b;
c() { unsigned long d = b * d / (1 << a); }

compiled by recent gcc trunk I get this:

bug541.c: In function ‘c’:
bug541.c:2:1: internal compiler error: tree check: expected ssa_name, have
mult_expr in get_nonzero_bits, at tree-ssanames.c:524
0x734b85 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../trunk/gcc/tree.c:9932
0x71ce8c tree_check(tree_node const*, char const*, int, char const*, tree_code)
        ../../trunk/gcc/tree.h:3519
0x71ce8c get_nonzero_bits(tree_node const*)
        ../../trunk/gcc/tree-ssanames.c:524
0x1393e52 generic_simplify_124
        /home/dcb/gcc/working/gcc/generic-match.c:5656

The bug seems to first appear sometime from revision 275550
to revision 275600.


More information about the Gcc-bugs mailing list