This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]