https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37835
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pault at gcc dot gnu.org --- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > (6) ... The additional patch --- ../_clean/gcc/fortran/symbol.c 2019-01-09 22:54:02.000000000 +0100 +++ gcc/fortran/symbol.c 2019-01-15 16:28:17.000000000 +0100 @@ -1306,9 +1306,7 @@ gfc_add_save (symbol_attribute *attr, sa if (s == SAVE_EXPLICIT) gfc_unset_implicit_pure (NULL); - if (s == SAVE_EXPLICIT && attr->save == SAVE_EXPLICIT) + if (s == SAVE_EXPLICIT && attr->save == SAVE_EXPLICIT && flag_automatic) { if (!gfc_notify_std (GFC_STD_LEGACY, "Duplicate SAVE attribute specified at %L", silences the warnings (errors). Do we need to add to the -fno-automatic doc a note saying that TUs with variables having an explicit SAVE attribute are silently accepted (even with -std=f*)? Along this line do we need to forbid it with -pedantic (by adding && !pedantic)?