https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88980
--- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Sat Feb 2 09:16:44 2019 New Revision: 268473 URL: https://gcc.gnu.org/viewcvs?rev=268473&root=gcc&view=rev Log: 2019-02-02 Paul Thomas <pa...@gcc.gnu.org> 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> PR fortran/88980 * gfortran.dg/realloc_on_assign_32.f90 : New test. Added: trunk/gcc/testsuite/gfortran.dg/realloc_on_assign_32.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-array.c trunk/gcc/testsuite/ChangeLog