https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118896
--- Comment #3 from Mikael Morin <mikael at gcc dot gnu.org> --- Created attachment 60515 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60515&action=edit complete patch with changelog This is a complete variation of the patch from comment #1. Unfortunately it regresses: NA->PASS:gfortran.dg/class_79.f90 PASS->FAIL:gfortran.dg/class_defined_operator_1.f03 PASS->FAIL:gfortran.dg/dynamic_dispatch_2.f03 PASS->FAIL:gfortran.dg/dynamic_dispatch_4.f03 PASS->FAIL:gfortran.dg/dynamic_dispatch_8.f03 PASS->FAIL:gfortran.dg/elemental_dependency_5.f90 XFAIL->XPASS:gfortran.dg/typebound_call_22.f03 PASS->FAIL:gfortran.dg/typebound_generic_6.f03