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/66175] ICE in gfc_free_namespace with unbalanced BLOCKs


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

--- Comment #2 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
Author: fxcoudert
Date: Mon Aug 24 16:29:59 2015
New Revision: 227135

URL: https://gcc.gnu.org/viewcvs?rev=227135&root=gcc&view=rev
Log:
        PR fortran/62536
        PR fortran/66175

        * decl.c (gfc_match_end): Clean up nested BLOCKs.
        * parse.c (parse_block_construct): Deal gracefully with cleaned-up
        BLOCKs.

        * gfortran.dg/block_end_error_1.f90: New test.
        * gfortran.dg/blocks_nested_incomplete_1.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/block_end_error_1.f90
    trunk/gcc/testsuite/gfortran.dg/blocks_nested_incomplete_1.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/decl.c
    trunk/gcc/fortran/parse.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]