https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80931
snowfed <snowfed at mail dot ru> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |snowfed at mail dot ru --- Comment #3 from snowfed <snowfed at mail dot ru> --- Just stumbled upon this bug as well. Here is my minimal example (slightly smaller than Tiziano's). module buggy implicit none type type_t character(:), dimension(:), allocatable :: characters contains procedure :: mover end type type_t contains subroutine mover (self) implicit none class(type_t), intent(in out) :: self character(:), dimension(:), allocatable :: new allocate(character(5) :: new(2018)) call move_alloc(new, self%characters) end subroutine mover end module buggy