re PR fortran/89492 (Endless compilation of an invalid TRANSFER after r269177)
authorHarald Anlauf <anlauf@gmx.de>
Tue, 26 Feb 2019 20:03:08 +0000 (20:03 +0000)
committerHarald Anlauf <anlauf@gcc.gnu.org>
Tue, 26 Feb 2019 20:03:08 +0000 (20:03 +0000)
commitec2d749a10606629e257ff6e7a7435289c9068d8
treeb8891f2858c1ba59fd45b7a9eba9d7b0b30e275e
parente5bf8dee56aaf4c489a1f3ceca04a8fcd1d2665a
re PR fortran/89492 (Endless compilation of an invalid TRANSFER after r269177)

2019-02-26  Harald Anlauf  <anlauf@gmx.de>

PR fortran/89492
* check.c (gfc_calculate_transfer_sizes): Handle cases where
storage size of elements of MOLD is 0.

PR fortran/89492
* gfortran.dg/pr89492.f90: New test.

From-SVN: r269227
gcc/fortran/ChangeLog
gcc/fortran/check.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr89492.f90 [new file with mode: 0644]