This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/54301] Add optional warning if pointer assigning a local variable to a nonlocal pointer
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 19 Aug 2012 17:27:14 +0000
- Subject: [Bug fortran/54301] Add optional warning if pointer assigning a local variable to a nonlocal pointer
- Auto-submitted: auto-generated
- References: <bug-54301-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54301
--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-08-19 17:27:14 UTC ---
(In reply to comment #4)
> (In reply to comment #3)
> If the target has the SAVE attribute or is allocatable, we shouldn't warn.
Why shouldn't one warn for ALLOCATABLE? See first example in comment 2 for a
code for which I would like to warn!
Submitted patch: http://gcc.gnu.org/ml/fortran/2012-08/msg00094.html