re PR fortran/52669 (No warning in unused private variable in modules)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 14 Jul 2013 19:16:56 +0000 (19:16 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 14 Jul 2013 19:16:56 +0000 (19:16 +0000)
commit38945cfe6a7951407845c96c136a47ee4342fdec
tree2fa7f4146658fc99be43116101f69b0b8ed81006
parenta960e80813e7e08410f5fb94368c63f276039b42
re PR fortran/52669 (No warning in unused private variable in modules)

2013-07-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
    Tobias Burnus  <burnus@gcc.gnu.org>

PR fortran/52669
* trans-decl.c (gfc_finish_var_decl):  Move setting of
PRIVATE for a module variable if the module has a private
default or -fmodule-private is given to...
(gfc_create_module_variable): here. Optionally
warn about private module variable which is not used.

2013-07-14  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/52669
* fortran.dg/module_variable_1.f90:  New test.
* fortran.dg/module_variable_2.f90:  New test.

Co-Authored-By: Tobias Burnus <burnus@gcc.gnu.org>
From-SVN: r200950
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/module_variable_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/module_variable_2.f90 [new file with mode: 0644]