This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/57096] Allocatable variable is not behaved as expected
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 Apr 2013 21:10:51 +0000
- Subject: [Bug fortran/57096] Allocatable variable is not behaved as expected
- Auto-submitted: auto-generated
- References: <bug-57096-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57096
--- Comment #4 from janus at gcc dot gnu.org 2013-04-30 21:10:51 UTC ---
(In reply to comment #3)
> Removing the -std=f2003 or putting the module into the same file as the
> subroutine makes the auto-deallocation (and nullification) go away. Puzzling.
I think the reason why it works with -std=f2008 is that module variables
implicitly get the SAVE attribute in F08.