re PR fortran/43136 (Excess copy-in/copy-out with character argument)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 15 Jan 2019 22:20:26 +0000 (22:20 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 15 Jan 2019 22:20:26 +0000 (22:20 +0000)
commit37879e01616f2031866ddbbeff5f30e562e7baac
treea7826e0b0d83f220696f41102f452c0033867539
parent0335cc372c9849c61b9a5583655820d88ecf829e
re PR fortran/43136 (Excess copy-in/copy-out with character argument)

2019-01-15  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/43136
* resolve.c (resolve_array_ref): Add equal_length argument; set it
if the length of the substring equals that of the orignal
variable.
(resolve_ref): Remove the substring if it is equal in length to
the original variable, unless it is an EXPR_SUBSTRING).

2019-01-15  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/43136
* gfortran.dg/actual_array_substr_3.f90: New test.

From-SVN: r267954
gcc/fortran/ChangeLog
gcc/testsuite/ChangeLog