[Bug fortran/50627] [4.6/4.7/4.8 Regression] Error recovery: ICE in gfc_free_namespace after diagnosing missing end of construct

tkoenig at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Feb 2 09:51:00 GMT 2013


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

--- Comment #7 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2013-02-02 09:51:03 UTC ---
Author: tkoenig
Date: Sat Feb  2 09:50:58 2013
New Revision: 195684

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195684
Log:
2013-02-02  Thomas Koenig  <tkoenig@gcc.gnu.org>

    PR fortran/50627
    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-02-02  Thomas Koenig  <tkoenig@gcc.gnu.org>

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


Added:
    trunk/gcc/testsuite/gfortran.dg/block_12.f90
    trunk/gcc/testsuite/gfortran.dg/module_error_1.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/decl.c
    trunk/gcc/fortran/parse.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list