https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85641
--- Comment #7 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Author: tkoenig Date: Thu Jun 7 18:13:33 2018 New Revision: 261289 URL: https://gcc.gnu.org/viewcvs?rev=261289&root=gcc&view=rev Log: 2018-06-07 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/85641 Backport from trunk. * frontend-passes.c (is_fe_temp): Add prototype. (realloc_string_callback): Early return for frontend-generated temporary. 2018-06-07 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/85641 Backport from trunk. * gfortran.dg/realloc_on_assign_30.f90: New test. Added: branches/gcc-7-branch/gcc/testsuite/gfortran.dg/realloc_on_assign_30.f90 Modified: branches/gcc-7-branch/gcc/fortran/ChangeLog branches/gcc-7-branch/gcc/fortran/frontend-passes.c branches/gcc-7-branch/gcc/testsuite/ChangeLog