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

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>:

https://gcc.gnu.org/g:7b7f203472d07a05d959a29638c7c95d98bf0c1c

commit r15-1826-g7b7f203472d07a05d959a29638c7c95d98bf0c1c
Author: Harald Anlauf <anl...@gmx.de>
Date:   Tue Jul 2 21:26:05 2024 +0200

    Fortran: fix associate with assumed-length character array [PR115700]

    gcc/fortran/ChangeLog:

            PR fortran/115700
            * trans-stmt.cc (trans_associate_var): When the associate target
            is an array-valued character variable, the length is known at entry
            of the associate block.  Move setting of string length of the
            selector to the initialization part of the block.

    gcc/testsuite/ChangeLog:

            PR fortran/115700
            * gfortran.dg/associate_69.f90: New test.

Reply via email to