re PR fortran/61669 (Error recovery ICE)
authorSteven Bosscher <steven@gcc.gnu.org>
Mon, 15 Dec 2014 18:37:59 +0000 (18:37 +0000)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 15 Dec 2014 18:37:59 +0000 (19:37 +0100)
commitd5e2274d7996cf8272a6c23152b347e8692d61f3
tree459a209d2169e7738ed70e98e823893506c1f517
parent76be46db72595b894a6e6da15e892d4a1f8f91cf
re PR fortran/61669 (Error recovery ICE)

PR fortran/61669
* gfortran.h (struct gfc_namespace): Add OLD_DATA field.
* decl.c (gfc_reject_data): New function.
* parse.c *use_modules): Record roll-back point.
(next_statement): Likewise.
(reject_statement): Roll back to last accepted DATA.

* gfortran.dg/pr61669.f90: New test.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r218757
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/gfortran.h
gcc/fortran/parse.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr61669.f90 [new file with mode: 0644]