[Bug fortran/24549] ICE with invalid pseudo-declaration statement

2006-05-10 Thread fxcoudert at gcc dot gnu dot org


--- Comment #4 from fxcoudert at gcc dot gnu dot org  2006-05-10 09:07 
---
I can reproduce this ICE with mainline on i686-linux. I propose the following
patch:

Index: parse.c
===
--- parse.c (revision 113603)
+++ parse.c (working copy)
@@ -1292,7 +1292,7 @@
 static void
 reject_statement (void)
 {
-
+  gfc_new_block = NULL;
   gfc_undo_symbols ();
   gfc_clear_warning ();
   undo_new_statement ();

(see http://gcc.gnu.org/ml/fortran/2006-05/msg00122.html for details).


-- 

fxcoudert at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |fxcoudert at gcc dot gnu dot
   |dot org |org
URL||http://gcc.gnu.org/ml/fortra
   ||n/2006-05/msg00122.html
 Status|NEW |ASSIGNED
   Keywords||patch
   Last reconfirmed|2006-01-27 20:52:12 |2006-05-10 09:07:27
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24549



[Bug fortran/24549] ICE with invalid pseudo-declaration statement

2006-05-10 Thread fxcoudert at gcc dot gnu dot org


--- Comment #5 from fxcoudert at gcc dot gnu dot org  2006-05-10 14:37 
---
*** Bug 27487 has been marked as a duplicate of this bug. ***


-- 

fxcoudert at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||reichelt at gcc dot gnu dot
   ||org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24549



[Bug fortran/24549] ICE with invalid pseudo-declaration statement

2006-05-10 Thread fxcoudert at gcc dot gnu dot org


--- Comment #6 from fxcoudert at gcc dot gnu dot org  2006-05-10 14:51 
---
Subject: Bug 24549

Author: fxcoudert
Date: Wed May 10 14:51:26 2006
New Revision: 113671

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=113671
Log:
PR fortran/24549
* parse.c (reject_statement): Clear gfc_new_block.
* gfortran.dg/error_recovery_1.f90: New test.

Added:
trunk/gcc/testsuite/gfortran.dg/error_recovery_1.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/parse.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24549



[Bug fortran/24549] ICE with invalid pseudo-declaration statement

2006-01-09 Thread pinskia at gcc dot gnu dot org


--- Comment #3 from pinskia at gcc dot gnu dot org  2006-01-09 22:35 ---
This is weird as I cannot reproduce it on powerpc-darwin but can on
x86_64-linux-gnu.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
   GCC host triplet|i686-pc-linux-gnu   |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24549




[Bug fortran/24549] ICE with invalid pseudo-declaration statement

2005-11-07 Thread tobi at gcc dot gnu dot org


--- Comment #2 from tobi at gcc dot gnu dot org  2005-11-07 12:58 ---
I'm marking this ice-on-invalid-code, as it is not valid Fortran 95 and the bug
is unrelated to the use of IMPORT, the following ICEs the same way:
  module gfcbug29_import
  interface
 subroutine foo (x)
   something :: dp
   real (kind=dp) :: x
 end subroutine foo
  end interface
end module gfcbug29_import


-- 

tobi at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||tobi at gcc dot gnu dot org
   Keywords||ice-on-invalid-code
Summary|gfortran: IMPORT of f2003   |ICE with invalid pseudo-
   |not yet implemented, ICE|declaration statement


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24549