https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87625
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> --- Author: burnus Date: Thu Oct 18 19:35:34 2018 New Revision: 265283 URL: https://gcc.gnu.org/viewcvs?rev=265283&root=gcc&view=rev Log: Fix (re)alloc of polymorphic arrays PR fortran/87625 * trans-array.c (gfc_is_reallocatable_lhs): Detect allocatable polymorphic arrays. PR fortran/87625 * gfortran.dg/realloc_on_assign_31.f90: New file. Added: trunk/gcc/testsuite/gfortran.dg/realloc_on_assign_31.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-array.c trunk/gcc/testsuite/ChangeLog