https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102900
--- Comment #4 from anlauf at gcc dot gnu.org --- The ICE is resolved by Jose's patch to PR100136, which was just accepted. It would also need to get backported to 11-branch. However, a runtime error will remain: At line 91 of file gcc/testsuite/gfortran.dg/alloc_comp_class_4.f03 Fortran runtime error: Allocatable actual argument 'c_init2' is not allocated Error termination. Backtrace: #0 0x40114b in test_pr58586 at gcc/testsuite/gfortran.dg/alloc_comp_class_4.f03:91 #1 0x40114b in main at gcc/testsuite/gfortran.dg/alloc_comp_class_4.f03:79