[Bug fortran/81770] [5/6/7 Regression] Bogus warning: Pointer in pointer assignment might outlive the pointer target
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Sep 2 20:14:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81770
--- Comment #5 from janus at gcc dot gnu.org ---
Author: janus
Date: Sat Sep 2 20:13:49 2017
New Revision: 251620
URL: https://gcc.gnu.org/viewcvs?rev=251620&root=gcc&view=rev
Log:
2017-09-02 Janus Weil <janus@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 <janus@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-5-branch/gcc/testsuite/gfortran.dg/warn_target_lifetime_4.f90
Modified:
branches/gcc-5-branch/gcc/fortran/ChangeLog
branches/gcc-5-branch/gcc/fortran/expr.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog
branches/gcc-5-branch/gcc/testsuite/gfortran.dg/warn_target_lifetime_3.f90
More information about the Gcc-bugs
mailing list