https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109846
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P4 CC| |kargl at gcc dot gnu.org --- Comment #1 from kargl at gcc dot gnu.org --- Confirmed. Workaround seems to be to not use a RESULT variable. This change seems to work function sublist(this) class(parameter_list), intent(inout) :: this class(parameter_list), pointer :: sublist allocate(sublist) end function