diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2023-05-23 06:46:37 +0100 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2023-05-23 06:46:37 +0100 |
commit | 842a432b02238361ecc601d301ac400a7f30f4fa (patch) | |
tree | 1c5acd09c06ecd60a04d9dbc33bede0cff92a714 /gcc/value-range.h | |
parent | 056280dea422ba831e40dee9e6769862927998c6 (diff) | |
download | gcc-842a432b02238361ecc601d301ac400a7f30f4fa.zip gcc-842a432b02238361ecc601d301ac400a7f30f4fa.tar.gz gcc-842a432b02238361ecc601d301ac400a7f30f4fa.tar.bz2 |
Fortran: Fix assumed length chars and len inquiry [PR103716]
2023-05-23 Paul Thomas <pault@gcc.gnu.org>
gcc/fortran
PR fortran/103716
* resolve.cc (gfc_resolve_ref): Conversion of array_ref into an
element should be done for all characters without a len expr,
not just deferred lens, and for integer expressions.
* trans-expr.cc (conv_inquiry): For len and kind inquiry refs,
set the se string_length to NULL_TREE.
gcc/testsuite/
PR fortran/103716
* gfortran.dg/pr103716.f90 : New test.
Diffstat (limited to 'gcc/value-range.h')
0 files changed, 0 insertions, 0 deletions