]> gcc.gnu.org Git - gcc.git/commit
Fortran: reject simplifying TRANSFER for MOLD with storage size 0
authorHarald Anlauf <anlauf@gmx.de>
Tue, 1 Feb 2022 22:33:24 +0000 (23:33 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Fri, 4 Feb 2022 19:13:56 +0000 (20:13 +0100)
commit7a0fab4bddce549380b2713a910127332a091e19
treef16261aba57b2bcb8d201129ac822101240e4163
parentfcea38e56c8330a5ff2524662988259db4d5079b
Fortran: reject simplifying TRANSFER for MOLD with storage size 0

gcc/fortran/ChangeLog:

PR fortran/104311
* check.c (gfc_calculate_transfer_sizes): Checks for case when
storage size of SOURCE is greater than zero while the storage size
of MOLD is zero and MOLD is an array shall not depend on SIZE.

gcc/testsuite/ChangeLog:

PR fortran/104311
* gfortran.dg/transfer_simplify_15.f90: New test.

(cherry picked from commit 4e4252db0348a7274663a892c3a96d3ed7702aff)
gcc/fortran/check.c
gcc/testsuite/gfortran.dg/transfer_simplify_15.f90 [new file with mode: 0644]
This page took 0.06357 seconds and 6 git commands to generate.