This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/25252] ICE on invalid code
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Nov 2007 17:49:57 -0000
- Subject: [Bug fortran/25252] ICE on invalid code
- References: <bug-25252-8649@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #18 from fxcoudert at gcc dot gnu dot org 2007-11-17 17:49 -------
Subject: Bug 25252
Author: fxcoudert
Date: Sat Nov 17 17:49:45 2007
New Revision: 130259
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130259
Log:
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.
Added:
trunk/gcc/testsuite/gfortran.dg/interface_22.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/decl.c
trunk/gcc/fortran/gfortran.h
trunk/gcc/fortran/interface.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25252