https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81770

--- Comment #4 from janus at gcc dot gnu.org ---
Author: janus
Date: Sat Sep  2 19:31:44 2017
New Revision: 251619

URL: https://gcc.gnu.org/viewcvs?rev=251619&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-6-branch/gcc/testsuite/gfortran.dg/warn_target_lifetime_4.f90
Modified:
    branches/gcc-6-branch/gcc/fortran/ChangeLog
    branches/gcc-6-branch/gcc/fortran/expr.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog
    branches/gcc-6-branch/gcc/testsuite/gfortran.dg/warn_target_lifetime_3.f90

Reply via email to