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

            Bug ID: 97897
           Summary: ICE tree check: expected ssa_name, have integer_cst in
                    compute_optimized_partition_bases, at
                    tree-ssa-coalesce.c:1638
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Affects versions down to at least r5 :
(compiles with "(_Complex a)" instead)


$ cat z1.c
void h ();
void f () __attribute__ ((returns_twice));
void g (_Complex int a)
{
  f ();
  if (a != 0)
  {
    a = 0;
    h ();
  }
}


$ gcc-11-20201115 -c z1.c
during RTL pass: expand
z1.c: In function 'g':
z1.c:3:6: internal compiler error: tree check: expected ssa_name, have
integer_cst in compute_optimized_partition_bases, at tree-ssa-coalesce.c:1638
    3 | void g (_Complex int a)
      |      ^
0x626df8 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../gcc/tree.c:9779
0xe4bb1f tree_check(tree_node*, char const*, int, char const*, tree_code)
        ../../gcc/tree.h:3314
0xe4bb1f compute_optimized_partition_bases
        ../../gcc/tree-ssa-coalesce.c:1638
0xe4bb1f coalesce_ssa_name(_var_map*)
        ../../gcc/tree-ssa-coalesce.c:1718
0xdde89b remove_ssa_form
        ../../gcc/tree-outof-ssa.c:1065
0xdde89b rewrite_out_of_ssa(ssaexpand*)
        ../../gcc/tree-outof-ssa.c:1323
0x80fa70 execute
        ../../gcc/cfgexpand.c:6407

Reply via email to