https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103389
Bug ID: 103389 Summary: [9/10/11/12 Regression] ICE in estimate_move_cost, at tree-inline.c:4191 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: --- Starts with r7 (changed in r9 between 20190127 and 20190203) : $ cat z1.f90 program p type t real, allocatable :: a(:) end type type(t) :: y call s((y)) contains subroutine s(x) class(*) :: x end end $ gfortran-9-20190127 -c z1.f90 $ $ gfortran-12-20211121 -c z1.f90 during GIMPLE pass: local-fnsummary z1.f90:6:14: 6 | call s((y)) | ^ internal compiler error: in estimate_move_cost, at tree-inline.c:4191 0xdccbff estimate_move_cost(tree_node*, bool) ../../gcc/tree-inline.c:4191 0xdcd054 estimate_num_insns(gimple*, eni_weights*) ../../gcc/tree-inline.c:4421 0xb2c7fc analyze_function_body ../../gcc/ipa-fnsummary.c:2746 0xb2f6cf compute_fn_summary(cgraph_node*, bool) ../../gcc/ipa-fnsummary.c:3191 0xb2fe4c compute_fn_summary_for_current ../../gcc/ipa-fnsummary.c:3221 0xb2fe4c execute ../../gcc/ipa-fnsummary.c:4829