]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/gfortran.h
re PR fortran/25252 (ICE on invalid code)
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sat, 17 Nov 2007 17:49:45 +0000 (17:49 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sat, 17 Nov 2007 17:49:45 +0000 (17:49 +0000)
commit2b77e908124cefa480e1e3143c57b4fc3e353da0
tree267c805c4f889eb005138028072b31606dfc71d5
parenta0857153ddb27ba0f64a16c934734421fd2fccfc
re PR fortran/25252 (ICE on invalid code)

PR fortran/25252

* interface.c (gfc_current_interface_head,
gfc_set_current_interface_head): New functions.
* decl.c (gfc_match_modproc): Move check for syntax error earlier.
On syntax error, restore previous state of the interface.
* gfortran.h (gfc_current_interface_head,
gfc_set_current_interface_head): New prototypes.

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

From-SVN: r130259
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/gfortran.h
gcc/fortran/interface.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/interface_22.f90 [new file with mode: 0644]