https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68569
--- Comment #9 from CVS 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:27ba73644f53c118e3f9b3fe9cd792210696ec55 commit r14-2805-g27ba73644f53c118e3f9b3fe9cd792210696ec55 Author: Harald Anlauf <anl...@gmx.de> Date: Wed Jul 26 21:12:45 2023 +0200 Fortran: diagnose strings of non-constant length in DATA statements [PR68569] gcc/fortran/ChangeLog: PR fortran/68569 * resolve.cc (check_data_variable): Do not accept strings with deferred length or non-constant length in a DATA statement. Reject also substrings of string variables of non-constant length. gcc/testsuite/ChangeLog: PR fortran/68569 * gfortran.dg/data_char_4.f90: Adjust expected diagnostic. * gfortran.dg/data_char_5.f90: Likewise. * gfortran.dg/data_char_6.f90: New test.