]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: fix bogus bounds check for reallocation on assignment [PR116706]
authorHarald Anlauf <anlauf@gmx.de>
Wed, 19 Mar 2025 21:56:03 +0000 (22:56 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Wed, 19 Mar 2025 22:36:33 +0000 (23:36 +0100)
commit3292ca9b0818c3e55102413c2407711d0755d280
treea14f9159b9d65a17cd5a8b3189e7d41050cb5016
parent80e1dac3849b134ebd5e0151e9c9e4b8b091de72
Fortran: fix bogus bounds check for reallocation on assignment [PR116706]

PR fortran/116706

gcc/fortran/ChangeLog:

* trans-array.cc (gfc_is_reallocatable_lhs): Fix check on
allocatable components of derived type or class objects.

gcc/testsuite/ChangeLog:

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