[Patch, Fortran] PR 34530 - Fix namelist read

Jerry DeLisle jvdelisle@verizon.net
Thu Dec 20 02:22:00 GMT 2007


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



More information about the Fortran mailing list