[Bug fortran/115700] [11/12/13/14 regression] Bogus warning for associate with assumed-length character array
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 3 17:09:31 GMT 2024
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 <anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:7b7f203472d07a05d959a29638c7c95d98bf0c1c
commit r15-1826-g7b7f203472d07a05d959a29638c7c95d98bf0c1c
Author: Harald Anlauf <anlauf@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.
More information about the Gcc-bugs
mailing list