diff options
author | Tobias Burnus <burnus@net-b.de> | 2012-08-20 07:47:46 +0200 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2012-08-20 07:47:46 +0200 |
commit | f657024b85d19eefb046c487a6f7e48bd4905dc9 (patch) | |
tree | 51ca2ece33f0faaea70effd3caefa5961c1fb915 /gcc/genoutput.c | |
parent | a15f1338f99a03da935ecbb1f04097469296e91a (diff) |
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 the pointer
might outlive its target.
* gfortran.h (struct gfc_option_t): Add warn_target_lifetime.
* options.c (gfc_init_options, set_wall, gfc_handle_option):
handle it.
* invoke.texi (-Wtarget-lifetime): Document it.
(-Wall): Implied it.
* lang.opt (-Wtarget-lifetime): New flag.
2012-08-20 Tobias Burnus <burnus@net-b.de>
PR fortran/54301
* gfortran.dg/warn_target_lifetime_1.f90: New.
From-SVN: r190522
Diffstat (limited to 'gcc/genoutput.c')
0 files changed, 0 insertions, 0 deletions