http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57538
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |burnus at gcc dot gnu.org Resolution|--- |INVALID --- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> --- (In reply to Valery Weber from comment #0) > I would like to ask you if the following code is f2008ts valid. Please use the mailing list or - for general Fortran questions - also the comp.lang.fortran newsgroup instead of the bugtracker. > So does the declaration of the table(...) need the SAVE? Since Fortran 2008, module variables are have automatically the SAVE attribute. Effectively, the same happened before Fortran 2008. Thus, you do not need the SAVE attribute. "A variable, common block, or procedure pointer declared in the scoping unit of a main program, module, or submodule implicitly has the SAVE attribute, which may be conformed by explicit specification." (F2008, 5.3.16 SAVE attribute). Note: The default initialization never causes that a variable gets the SAVE attribute.