diff options
author | Tobias Burnus <tobias@codesourcery.com> | 2020-06-25 16:57:08 +0200 |
---|---|---|
committer | Tobias Burnus <tobias@codesourcery.com> | 2020-06-25 16:57:08 +0200 |
commit | f48bffe70cba310461ec19ffcd07c573a6b86575 (patch) | |
tree | 55c737310793db38ac215616287c8d1f50a1f6cc /gcc/d/d-lang.cc | |
parent | 628b78f9794a2eefcbc578011806bfa8e09b9ef7 (diff) | |
download | gcc-f48bffe70cba310461ec19ffcd07c573a6b86575.zip gcc-f48bffe70cba310461ec19ffcd07c573a6b86575.tar.gz gcc-f48bffe70cba310461ec19ffcd07c573a6b86575.tar.bz2 |
Fortran: Fix character-kind=4 substring resolution (PR95837)
Testing showed that it is always set and its value matches
always ts->kind (if available) or otherwise, if it is a variable,
the sym->ts.kind.
gcc/fortran/ChangeLog:
PR fortran/95837
* resolve.c (gfc_resolve_substring_charlen): Remove
bogus ts.kind setting for the expression.
gcc/testsuite/ChangeLog:
PR fortran/95837
* gfortran.dg/char4-subscript.f90: New test.
Diffstat (limited to 'gcc/d/d-lang.cc')
0 files changed, 0 insertions, 0 deletions