https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68196
--- Comment #8 from Damian Rouson <damian at sourceryinstitute dot org> --- I believe the example below is related to this bug report: $ cat alloc-ptr-comp-func-result.f90 type Bug real, allocatable :: scalar procedure(buggerInterface),pointer :: bugger end type interface function buggerInterface(A) result(C) import Bug class(Bug) A type(Bug) C end function end interface end $ gfortran alloc-ptr-comp-func-result.f90 gfortran: internal compiler error: Segmentation fault (program f951) Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. $ gfortran --version GNU Fortran (GCC) 6.0.0 20151214 (experimental)