aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.cc
diff options
context:
space:
mode:
authorHarald Anlauf <anlauf@gmx.de>2023-07-26 21:12:45 +0200
committerHarald Anlauf <anlauf@gmx.de>2023-07-26 21:45:28 +0200
commit27ba73644f53c118e3f9b3fe9cd792210696ec55 (patch)
treefaa8a4c67fe6322d489416ec67508605691d16ac /gcc/cp/constexpr.cc
parent15a122db3b7155eb52c0202e9d2d24d463590d27 (diff)
downloadgcc-27ba73644f53c118e3f9b3fe9cd792210696ec55.zip
gcc-27ba73644f53c118e3f9b3fe9cd792210696ec55.tar.gz
gcc-27ba73644f53c118e3f9b3fe9cd792210696ec55.tar.bz2
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.
Diffstat (limited to 'gcc/cp/constexpr.cc')
0 files changed, 0 insertions, 0 deletions