https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81898
--- Comment #4 from janus at gcc dot gnu.org --- (In reply to janus from comment #3) > I think the regression has been introduced by r241439, in particular the > resolve.c part. Reverting it makes the segfault disappear. Unfortunately reverting that part seems to cause quite a number of regressions in the testsuite: FAIL: gfortran.dg/allocate_with_source_16.f90 -O0 (internal compiler error) FAIL: gfortran.dg/allocate_with_source_6.f90 -O execution test FAIL: gfortran.dg/associated_target_4.f90 -O0 execution test FAIL: gfortran.dg/class_10.f03 -O (internal compiler error) FAIL: gfortran.dg/class_array_15.f03 -O0 (internal compiler error) FAIL: gfortran.dg/coarray_allocate_4.f08 -O0 execution test FAIL: gfortran.dg/dtio_5.f90 -O0 execution test FAIL: gfortran.dg/dynamic_dispatch_6.f03 -O0 (internal compiler error) FAIL: gfortran.dg/interface_32.f90 -O (internal compiler error) FAIL: gfortran.dg/pointer_assign_9.f90 -O0 (internal compiler error) FAIL: gfortran.dg/pointer_assign_11.f90 -O0 (internal compiler error) FAIL: gfortran.dg/select_type_35.f03 -O0 execution test FAIL: gfortran.dg/select_type_4.f90 -O0 (internal compiler error) FAIL: gfortran.dg/typebound_proc_25.f90 -O (internal compiler error) FAIL: gfortran.dg/unlimited_polymorphic_22.f90 -O0 execution test FAIL: gfortran.dg/unlimited_polymorphic_24.f03 -O0 (internal compiler error) FAIL: gfortran.dg/unlimited_polymorphic_3.f03 -O0 execution test FAIL: gfortran.dg/prof/dynamic_dispatch_6.f03 compilation, -fprofile-generate -D_PROFILE_GENERATE (internal compiler error)