[patch, fortran] Fix PR 50627

Thomas Koenig tkoenig@netcologne.de
Sun Jan 27 18:36:00 GMT 2013


Hello world,

the attached patch fixes the regression regarding freeing
namespaces twice.

The test cases where also run unter valgrind without
producing errors.

Regression-tested.  OK for trunk?

	Thomas

2013-01-27  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR fortran/56054
         * decl.c (gfc_match_end):  Remove half-ready namespace
         from parent if the end of a block is missing.
         * parse.c (parse_module):  Do not put namespace into
         gsymbol on error.

2013-01-27  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR fortran/56054
         * gfortran.dg/block_12.f90:  New test.
         * gfortran.dg/module_error_1.f90:  New test.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: p3.diff
Type: text/x-patch
Size: 1965 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130127/231bf9b2/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: module_error_1.f90
Type: text/x-fortran
Size: 119 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130127/231bf9b2/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: block_12.f90
Type: text/x-fortran
Size: 182 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130127/231bf9b2/attachment-0002.bin>


More information about the Fortran mailing list