This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Rev. 269177 uncovered a latent issue in TRANSFER when the MOLD argument had storage size 0, resulting in an infinite loop. The attached patch rejects illegal cases and handles the case where storage size of both SOURCE and MOLD are 0. It also verifies proper simplification for some cases, some of which were not always properly handled before. Thanks to Dominique for the heads-up which I initially missed. Regtested on x86_64-pc-linux-gnu; the testcase is based on the report and slightly extended. OK for trunk? Thanks, and sorry for any inconvenience caused, Harald 2019-02-25 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. 2019-02-25 Harald Anlauf <anlauf@gmx.de> PR fortran/89492 * gfortran.dg/pr89492.f90: New test.
Attachment:
patch-pr89492
Description: Text document
Attachment:
patch-pr89492-testcase
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |