On Wed, Mar 10, 2021 at 03:20:51PM +0100, Tobias Burnus wrote:
> gcc/fortran/ChangeLog:
>
> PR fortran/99514
> * resolve.c (resolve_symbol): Accept vars which are in DATA
> and hence (either) implicit SAVE (or in common).
>
> gcc/testsuite/ChangeLog:
>
> PR fortran/99514
If a variable appears in DATA, the following applies:
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."
The attached test