https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85641
--- Comment #6 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Author: tkoenig Date: Thu Jun 7 17:33:44 2018 New Revision: 261285 URL: https://gcc.gnu.org/viewcvs?rev=261285&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-8-branch/gcc/testsuite/gfortran.dg/realloc_on_assign_30.f90 Modified: branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/frontend-passes.c branches/gcc-8-branch/gcc/testsuite/ChangeLog