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]

A strange omission


Whilst going through the throes of testing all the testsuite candidates and the final debugging for namelist, I noticed this "feature" in libgfortran/io/list_read.c

In eat_separator  at line 242, in my version:
.....
     break;

   case '\n':
   case '\r':
[      at_eol = 1; ]
     break;

case '!':

where the [at_eol = 1;] is missing. I inserted it and find that no regressions are caused. It removes the need for a kluge in namelist read.

Does anybody know why the end of line flag is not being set at the end of a line?

If nobody can come up with an explanation, I'll submit it as a separate patch.

Paul T





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