[gfortran] Segfault in list formatted read

Paul Brook paul@nowt.org
Sun Oct 12 14:39:00 GMT 2003


The patch below fixes a segfault with list formatted reads of character 
variables.

Applied to tree-ssa branch.

Paul

2003-10-12  XiaoQiang Zhang  <zhangapache@yahoo.com>

	* io/list_read.c (read_character): Remove unwanted call to free_saved.

--- clean/tree-ssa/libgfortran/io/list_read.c
+++ gcc/libgfortran/io/list_read.c
@@ -782,7 +782,6 @@ done:
     {
       unget_char (c);
       eat_separator ();
-      free_saved ();
       saved_type = BT_CHARACTER;
     }
   else



More information about the Fortran mailing list