This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/52669] No warning in unused private variable in modules


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52669

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Author: tkoenig
Date: Sun Jul 14 19:16:56 2013
New Revision: 200950

URL: http://gcc.gnu.org/viewcvs?rev=200950&root=gcc&view=rev
Log:
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.


Added:
    trunk/gcc/testsuite/gfortran.dg/module_variable_1.f90
    trunk/gcc/testsuite/gfortran.dg/module_variable_2.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-decl.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]