[Bug c/99225] New: ICE in wide_int_to_tree_1, at tree.c:1644

gscfq@t-online.de gcc-bugzilla@gcc.gnu.org
Tue Feb 23 18:29:16 GMT 2021


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

            Bug ID: 99225
           Summary: ICE in wide_int_to_tree_1, at tree.c:1644
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Affects versions down to at least r5 :


$ cat z1.c
#define vector __attribute__((vector_size(16)))
int f ()
{
  vector int a = {0, 0, 0, 0};
  vector int b = {1, 0, 0, 0};
  return (a & (1 << b)) != 0;
}


$ gcc-11-20210221 -c z1.c
z1.c: In function 'f':
z1.c:6:3: internal compiler error: in wide_int_to_tree_1, at tree.c:1644
    6 |   return (a & (1 << b)) != 0;
      |   ^~~~~~
0xde3e1e wide_int_to_tree_1
        ../../gcc/tree.c:1644
0xde433b wide_int_to_tree(tree_node*, poly_int<1u,
generic_wide_int<wide_int_ref_storage<false, true> > > const&)
        ../../gcc/tree.c:1756
0xde433b build_int_cst(tree_node*, poly_int<1u, long>)
        ../../gcc/tree.c:1396
0x8945ea fold_binary_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
        ../../gcc/fold-const.c:12048
0x894caa fold_build2_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
        ../../gcc/fold-const.c:13715
0x69e80b c_fully_fold_internal
        ../../gcc/c/c-fold.c:371
0x69e00d c_fully_fold_internal
        ../../gcc/c/c-fold.c:623
0x69f0a9 c_fully_fold(tree_node*, bool, bool*, bool)
        ../../gcc/c/c-fold.c:125
0x65c2cd c_finish_return(unsigned int, tree_node*, tree_node*)
        ../../gcc/c/c-typeck.c:10742
0x6918b6 c_parser_statement_after_labels
        ../../gcc/c/c-parser.c:6162
0x69339a c_parser_compound_statement_nostart
        ../../gcc/c/c-parser.c:5788
0x693c13 c_parser_compound_statement
        ../../gcc/c/c-parser.c:5597
0x6954c8 c_parser_declaration_or_fndef
        ../../gcc/c/c-parser.c:2539
0x69c337 c_parser_external_declaration
        ../../gcc/c/c-parser.c:1777
0x69ce59 c_parser_translation_unit
        ../../gcc/c/c-parser.c:1650
0x69ce59 c_parse_file()
        ../../gcc/c/c-parser.c:21984
0x6eccc2 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1218


More information about the Gcc-bugs mailing list