https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89516
--- Comment #5 from anlauf at gcc dot gnu.org --- Author: anlauf Date: Sat Mar 2 15:29:27 2019 New Revision: 269341 URL: https://gcc.gnu.org/viewcvs?rev=269341&root=gcc&view=rev Log: 2019-03-02 Harald Anlauf <anl...@gmx.de> PR fortran/89516 * check.c (gfc_calculate_transfer_sizes): Correct checks for cases where storage size of elements of MOLD is 0. PR fortran/89516 * gfortran.dg/pr89492.f90: Adjust testcase. * gfortran.dg/transfer_check_5.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/transfer_check_5.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/check.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/pr89492.f90