]> 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>
Thu, 3 Feb 2022 18:22:40 +0000 (19:22 +0100)
commit4e4252db0348a7274663a892c3a96d3ed7702aff
treeb4f376d186df501e905d94b7dc425a43ba1a06c9
parentc7d0d03a6bfbd09dccaeaa0ed6c2e072c86e4792
Fortran: reject simplifying TRANSFER for MOLD with storage size 0

gcc/fortran/ChangeLog:

PR fortran/104311
* check.cc (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.
gcc/fortran/check.cc
gcc/testsuite/gfortran.dg/transfer_simplify_15.f90 [new file with mode: 0644]
This page took 0.064413 seconds and 5 git commands to generate.