re PR fortran/81770 (Bogus warning: Pointer in pointer assignment might outlive the...
authorJanus Weil <janus@gcc.gnu.org>
Mon, 28 Aug 2017 18:46:28 +0000 (20:46 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Mon, 28 Aug 2017 18:46:28 +0000 (20:46 +0200)
commitc11384aa75f6c6f78f1ea2c700ebd8a83b16106b
tree1e88e8c31e7f667c8714f533bf27d4640a4c4c94
parentac9a43e165b5cb6cd505955d58cb3d6aadbf6dcd
re PR fortran/81770 (Bogus warning: Pointer in pointer assignment might outlive the pointer target)

2017-08-28  Janus Weil  <janus@gcc.gnu.org>

PR fortran/81770
* expr.c (gfc_check_pointer_assign): Improve the check whether pointer
may outlive pointer target.

2017-08-28  Janus Weil  <janus@gcc.gnu.org>

PR fortran/81770
* gfortran.dg/warn_target_lifetime_3.f90: Fix a typo.
* gfortran.dg/warn_target_lifetime_4.f90: New testcase.

From-SVN: r251390
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/warn_target_lifetime_3.f90
gcc/testsuite/gfortran.dg/warn_target_lifetime_4.f90 [new file with mode: 0644]