https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88980
--- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Sun Feb 3 14:44:19 2019 New Revision: 268488 URL: https://gcc.gnu.org/viewcvs?rev=268488&root=gcc&view=rev Log: 2019-02-02 Paul Thomas <pa...@gcc.gnu.org> Backport from trunk PR fortran/88980 * trans-array.c (gfc_array_init_size): Add element_size to the arguments. (gfc_array_allocate): Remove the recalculation of the size of the element and use element_size from the call to the above. Unconditionally set the span field of the descriptor. 2019-02-02 Paul Thomas <pa...@gcc.gnu.org> Backport from trunk PR fortran/88980 * gfortran.dg/realloc_on_assign_32.f90 : New test. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/realloc_on_assign_32.f90 Modified: branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/trans-array.c branches/gcc-8-branch/gcc/testsuite/ChangeLog