This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: [Patch, Fortran] PR 34530 - Fix namelist read


Tobias Burnus wrote:
Since a recent patch, gfortran was choking on a namelist created as:

  write(nnml,*) "&blacklist "
  write(nnml,*) "  ! This is a comment within the namelist"
  write(nnml,*) "  file    = 'myfile'"


The problem was that as namelist object "!" was tried to read, which does not make much sense.

The patch now simply skips comment lines (in namelist mode) when it eats
separators.

Build and regtested on x86-64-linux.
OK for the trunk?

Tobias

OK, thanks Tobias for quick patch.

Jerry


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