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.