re PR fortran/62536 (ICE (segfault) for invalid END BLOCK statement)
authorLouis Krupp <louis.krupp@zoho.com>
Mon, 24 Aug 2015 16:29:59 +0000 (16:29 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Mon, 24 Aug 2015 16:29:59 +0000 (16:29 +0000)
commit9f7ba2088e4ebfa747f51a107d25f05c29df51b7
tree6e41ed5457b2c0579a7c84fd81d880193a273f76
parent2021ff273d58600199d0b2fb394c1ebee9bbeec0
re PR fortran/62536 (ICE (segfault) for invalid END BLOCK statement)

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.

From-SVN: r227135
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/parse.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/block_end_error_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/blocks_nested_incomplete_1.f90 [new file with mode: 0644]