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

            Bug ID: 101760
           Summary: [11/12 Regression] ICE in make_ssa_name_fn, at
                    tree-ssanames.c:290
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Changed between 20210606 and 20210613 :


$ cat z1.f90
program p
   character(:), allocatable, target :: x
   logical :: l
   !$omp target map(from: l)
   l = allocated (x)
   !$omp end target
end


$ gfortran-12-20210606 -c z1.f90 -fopenmp -O2
$
$ gfortran-12-20210801 -c z1.f90 -fopenmp -O2
during IPA pass: inline
z1.f90:7:3:

    7 | end
      |   ^
internal compiler error: in make_ssa_name_fn, at tree-ssanames.c:290
0x107175d make_ssa_name_fn(function*, tree_node*, gimple*, unsigned int)
        ../../gcc/tree-ssanames.c:287
0xe7e68e make_ssa_name
        ../../gcc/tree-ssanames.h:110
0xe7e68e remap_ssa_name
        ../../gcc/tree-inline.c:238
0xe82707 copy_tree_body_r(tree_node**, int*, void*)
        ../../gcc/tree-inline.c:1232
0x114fd73 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*,
tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*))
        ../../gcc/tree.c:10971
0x115074d walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*,
tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*))
        ../../gcc/tree.c:11321
0xe7bc36 remap_type_1
        ../../gcc/tree-inline.c:598
0xe7c828 remap_type(tree_node*, copy_body_data*)
        ../../gcc/tree-inline.c:716
0xe7b3a4 remap_type_1
        ../../gcc/tree-inline.c:428
0xe7c828 remap_type(tree_node*, copy_body_data*)
        ../../gcc/tree-inline.c:716
0xe7c8fa remap_decl(tree_node*, copy_body_data*)
        ../../gcc/tree-inline.c:380
0xe7d5bc remap_decls
        ../../gcc/tree-inline.c:765
0xe7fda1 remap_block
        ../../gcc/tree-inline.c:823
0xe7ff35 remap_blocks
        ../../gcc/tree-inline.c:845
0xe8b181 expand_call_inline
        ../../gcc/tree-inline.c:4998
0xe8c639 gimple_expand_calls_inline
        ../../gcc/tree-inline.c:5285
0xe8c639 optimize_inline_calls(tree_node*)
        ../../gcc/tree-inline.c:5458
0xb746ab inline_transform(cgraph_node*)
        ../../gcc/ipa-inline-transform.c:790
0xcf0439 execute_one_ipa_transform_pass
        ../../gcc/passes.c:2290
0xcf0439 execute_all_ipa_transforms(bool)
        ../../gcc/passes.c:2337

Reply via email to