https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80392
--- Comment #7 from janus at gcc dot gnu.org --- Author: janus Date: Mon May 1 10:51:22 2017 New Revision: 247435 URL: https://gcc.gnu.org/viewcvs?rev=247435&root=gcc&view=rev Log: 2017-05-01 Janus Weil <ja...@gcc.gnu.org> Backport from trunk PR fortran/80392 * trans-types.c (gfc_get_derived_type): Prevent an infinite loop when building a derived type that includes a procedure pointer component with a polymorphic result. 2017-05-01 Janus Weil <ja...@gcc.gnu.org> Backport from trunk PR fortran/80392 * gfortran.dg/proc_ptr_comp_49.f90: New test case. Added: branches/gcc-5-branch/gcc/testsuite/gfortran.dg/proc_ptr_comp_49.f90 Modified: branches/gcc-5-branch/gcc/fortran/ChangeLog branches/gcc-5-branch/gcc/fortran/trans-types.c branches/gcc-5-branch/gcc/testsuite/ChangeLog