]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: fix pointless warning for static variables
authorHarald Anlauf <anlauf@gmx.de>
Tue, 24 Aug 2021 19:07:50 +0000 (21:07 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Tue, 24 Aug 2021 19:07:50 +0000 (21:07 +0200)
commitf95946afd160e2a1f4beac4ee5e6d5633307f39a
tree267cd3acf5b23e7411bccfd3d5529061b94de683
parent50cb8300d3bf0b487063784fbbe394301b6c79b2
Fortran: fix pointless warning for static variables

gcc/fortran/ChangeLog:

PR fortran/98411
* trans-decl.c (gfc_finish_var_decl): Adjust check to handle
implicit SAVE as well as variables in the main program.  Improve
warning message text.

gcc/testsuite/ChangeLog:

PR fortran/98411
* gfortran.dg/pr98411.f90: Adjust testcase options to restrict to
F2008, and verify case of implicit SAVE.
gcc/fortran/trans-decl.c
gcc/testsuite/gfortran.dg/pr98411.f90