]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/54301 (Add optional warning if pointer assigning a local variable to...
authorTobias Burnus <burnus@net-b.de>
Mon, 20 Aug 2012 19:49:46 +0000 (21:49 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Mon, 20 Aug 2012 19:49:46 +0000 (21:49 +0200)
commited0ba472c654095656fe1da371ee1a710fce2cf0
tree4f00eaee89fd24bfe17ce28b877ab8f4b661dab7
parent07bc8ae8abd68eaf968f77f453e33ec60c371bb3
re PR fortran/54301 (Add optional warning if pointer assigning a local variable to a nonlocal pointer)

2012-08-20  Tobias Burnus  <burnus@net-b.de>

        PR fortran/54301
        * expr.c (gfc_check_pointer_assign): Warn when a pointer,
        which is a function result, might outlive its target.

2012-08-20  Tobias Burnus  <burnus@net-b.de>

        PR fortran/54301
        * gfortran.dg/warn_target_lifetime_2.f90: New.

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