re PR fortran/71902 (Unneeded temporary on reallocatable character assignment)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 4 Sep 2016 16:17:55 +0000 (16:17 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 4 Sep 2016 16:17:55 +0000 (16:17 +0000)
commitd6598cf719fb63ead5618cf8908218519e82cc3e
tree7ba3242cce173a116ef52dac87549f58429914c0
parentabb62d32a1f472ba3b1f9ae07bcdcc1d7f014699
re PR fortran/71902 (Unneeded temporary on reallocatable character assignment)

2016-09-04  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/71902
* frontend-passes.c (realloc_string_callback): Also check for the
lhs being deferred.  Name temporary variable "realloc_string".

2016-09-04  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/71902
* gfortran.dg/dependency_47.f90:  New test.
* gfortran.dg/dependency_49.f90:  New test.

From-SVN: r239977
gcc/fortran/frontend-passes.c
gcc/testsuite/gfortran.dg/dependency_47.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/dependency_49.f90 [new file with mode: 0644]