]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix automatic reallocation inside select rank [PR100103]
authorJosé Rui Faustino de Sousa <jrfsousa@gmail.com>
Wed, 21 Sep 2022 20:55:02 +0000 (22:55 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Thu, 22 Sep 2022 16:35:07 +0000 (18:35 +0200)
commit12b537b9b7fd50f4b2fbfcb7ccf45f8d66085577
treec62bd86b06c68972447c01645552673126147511
parentbc71318a91286b5f00e88f07aab818ac82510692
Fortran: Fix automatic reallocation inside select rank [PR100103]

gcc/fortran/ChangeLog:

PR fortran/100103
* trans-array.cc (gfc_is_reallocatable_lhs): Add select rank
temporary associate names as possible targets of automatic
reallocation.

gcc/testsuite/ChangeLog:

PR fortran/100103
* gfortran.dg/PR100103.f90: New test.
gcc/fortran/trans-array.cc
gcc/testsuite/gfortran.dg/PR100103.f90 [new file with mode: 0644]