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/67588] module.c heap use after free


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67588

--- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Thu Sep 17 09:09:34 2015
New Revision: 227855

URL: https://gcc.gnu.org/viewcvs?rev=227855&root=gcc&view=rev
Log:
2015-09-17  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/52846
        PR fortran/67588
        * module.c : Add static no_module_procedures.
        (gfc_match_submodule): Correct memory leakage caused during the
        freeing of use_lists.
        (mio_symbol_attribute): Reset above if module procedure is
        encountered.
        (gfc_dump_module): Set above and exit without writing smod file
        if it reset.
        * gfortran.texi : Add section on submodule support.

2015-09-17  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/52846
        * gfortran.dg/public_private_module_5.f90: Add module procedure
        trigger_smod to ensure that the smod file is written.

Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/gfortran.texi
    trunk/gcc/fortran/module.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/submodule_5.f08


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