[Bug fortran/116706] Unable to fill allocatable array component of a derived type instance in a pointer array within a derived type

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 25 22:02:06 GMT 2025


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116706

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:de9500d93eed789bf7bc4a82b522edb6dd2b6202

commit r14-11448-gde9500d93eed789bf7bc4a82b522edb6dd2b6202
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Wed Mar 19 22:56:03 2025 +0100

    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.

    (cherry picked from commit 3292ca9b0818c3e55102413c2407711d0755d280)


More information about the Gcc-bugs mailing list