https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90499
Bug ID: 90499 Summary: ICE during polymorphic assignment Product: gcc Version: 8.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: townsend at astro dot wisc.edu Target Milestone: --- The test program below causes an internal compiler error, that appears to be linked to the polymorphic assignment: -- program test implicit none type f_t end type f_t type, extends (f_t) :: g_t end type g_t contains function func () result (f) class(f_t), allocatable :: f f = g_t() end function func end program test -- When compiling with gfortran -c test.f90, I get: test.f90:17:0: f = g_t() internal compiler error: in build_function_decl, at fortran/trans-decl.c:2242 libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. cheers, Rich