https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81770
--- Comment #3 from janus at gcc dot gnu.org --- Author: janus Date: Sat Sep 2 19:04:08 2017 New Revision: 251618 URL: https://gcc.gnu.org/viewcvs?rev=251618&root=gcc&view=rev Log: 2017-09-02 Janus Weil <ja...@gcc.gnu.org> Backport from trunk PR fortran/81770 * expr.c (gfc_check_pointer_assign): Improve the check whether pointer may outlive pointer target. 2017-09-02 Janus Weil <ja...@gcc.gnu.org> Backport from trunk PR fortran/81770 * gfortran.dg/warn_target_lifetime_3.f90: Fix a typo. * gfortran.dg/warn_target_lifetime_4.f90: New testcase. Added: branches/gcc-7-branch/gcc/testsuite/gfortran.dg/warn_target_lifetime_4.f90 Modified: branches/gcc-7-branch/gcc/fortran/ChangeLog branches/gcc-7-branch/gcc/fortran/expr.c branches/gcc-7-branch/gcc/testsuite/ChangeLog branches/gcc-7-branch/gcc/testsuite/gfortran.dg/warn_target_lifetime_3.f90