This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
[patch, libgfortran] PR36546 Namelist error with tab following a comma and newline
- From: Jerry DeLisle <jvdelisle at verizon dot net>
- To: Fortran List <fortran at gcc dot gnu dot org>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 16 Jun 2008 20:24:36 -0700
- Subject: [patch, libgfortran] PR36546 Namelist error with tab following a comma and newline
I plan to commit the following patch and attached test case as obvious/simple
Jerry
2008-06-16 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/36546
* io/list_read.c (namelist_read): Add tab character to condition
for looping past whitespace.
Index: io/list_read.c
===================================================================
--- io/list_read.c (revision 136821)
+++ io/list_read.c (working copy)
@@ -366,7 +366,7 @@ eat_separator (st_parameter_dt *dtp)
}
}
}
- while (c == '\n' || c == '\r' || c == ' ');
+ while (c == '\n' || c == '\r' || c == ' ' || c == '\t');
unget_char (dtp, c);
}
break;