https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77632
--- Comment #6 from kargl at gcc dot gnu.org --- Author: kargl Date: Thu Jun 20 23:50:54 2019 New Revision: 272532 URL: https://gcc.gnu.org/viewcvs?rev=272532&root=gcc&view=rev Log: 2019-06-20 Steven G. Kargl <ka...@gcc.gnu.org> Backport from mainline PR fortran/77632 * /decl.c (variable_decl): Mark a variable that is a target in pointer initialization when in PROGRAM, MODULE, or SUBMODULE scope with an implicit save. 2019-06-20 Steven G. Kargl <ka...@gcc.gnu.org> Backport from mainline PR fortran/77632 * gfortran.dg/pr77632_1.f90: New test. Added: branches/gcc-9-branch/gcc/testsuite/gfortran.dg/pr77632_1.f90 Modified: branches/gcc-9-branch/gcc/fortran/ChangeLog branches/gcc-9-branch/gcc/fortran/decl.c branches/gcc-9-branch/gcc/testsuite/ChangeLog