diff options
Diffstat (limited to 'gcc/fortran/decl.c')
-rw-r--r-- | gcc/fortran/decl.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c index c7f5eed3682..2d405fe9838 100644 --- a/gcc/fortran/decl.c +++ b/gcc/fortran/decl.c @@ -3827,11 +3827,9 @@ match_attr_spec (void) } } - /* Since Fortran 2008, variables declared in a MODULE or PROGRAM - implicitly have the SAVE attribute. */ - if ((gfc_current_state () == COMP_MODULE - || gfc_current_state () == COMP_PROGRAM) - && !current_attr.save && (gfc_option.allow_std & GFC_STD_F2008) != 0) + /* Since Fortran 2008 module variables implicitly have the SAVE attribute. */ + if (gfc_current_state () == COMP_MODULE && !current_attr.save + && (gfc_option.allow_std & GFC_STD_F2008) != 0) current_attr.save = SAVE_IMPLICIT; colon_seen = 1; |