re PR fortran/50627 (Error recovery: ICE in gfc_free_namespace after diagnosing missi...
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 2 Feb 2013 09:50:58 +0000 (09:50 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 2 Feb 2013 09:50:58 +0000 (09:50 +0000)
commit0cab6b73df8b8fc78a6f68e664867d1dbbeea9e5
tree0496b4b0755833aa8aaae77c8eb7e594bdb2a796
parent18d2405e9d513dd169ed87d8194feed34ce73798
re PR fortran/50627 (Error recovery: ICE in gfc_free_namespace after diagnosing missing end of construct)

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.

From-SVN: r195684
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/parse.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/block_12.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/module_error_1.f90 [new file with mode: 0644]