re PR fortran/89516 (ICE in gfc_calculate_transfer_sizes at gcc/fortran/check.c:5506)
authorHarald Anlauf <anlauf@gmx.de>
Sat, 2 Mar 2019 15:29:27 +0000 (15:29 +0000)
committerHarald Anlauf <anlauf@gcc.gnu.org>
Sat, 2 Mar 2019 15:29:27 +0000 (15:29 +0000)
commit4716603bf875cee4b4703bd139b6c2c1a3154886
treef5129b9f40cf7a44f253213ba73b49cb13f0183b
parent574eaf0fda98b795daf6b588e3c0e878987f9769
re PR fortran/89516 (ICE in gfc_calculate_transfer_sizes at gcc/fortran/check.c:5506)

2019-03-02  Harald Anlauf  <anlauf@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.

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