https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99514
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> --- (In reply to markus.weil...@ipp.mpg.de from comment #0) > I believe the ifort behavior is correct here, because the initialization of > NTest via DATA causes an implicit save, which seems not to be identified by > gfortran. Concur, except if there is a common (which there isn't): F2018: 8.6.7 DATA statement "Except for variables in named common blocks, a named variable has the SAVE attribute if any part of it is initialized in a DATA statement, and this may be confirmed by explicit specification."