https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86242
--- Comment #2 from janus at gcc dot gnu.org --- Slightly reduced test case: module test implicit none type :: output end type type :: tester integer, allocatable :: wrap procedure(proc1), pointer, nopass :: ptr end type abstract interface function proc1() result(uc) import :: output class(output), allocatable :: uc end function end interface end