[patch, libfortran] PR33039 Read NAMELIST: reads wrong namelist name
Jerry DeLisle
jvdelisle@verizon.net
Fri Aug 10 05:36:00 GMT 2007
:ADDPATCH fortran:
Hi,
This patch fixes this by checking for the required space after a namelist name.
I also allow end of line characters, mostly to avoid rewriting a bunch of test
cases. It seems reasonable. The space is a requirement on the user, not the
compiler.
I will commit as obvious. Regression tested on x86-64-Gnu-Linux.
Attached is one test case that requires updating, plus one new test case.
Regards,
Jerry
2007-08-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/33039
* io/list_read.c (find_nml_name): Check for a space after a namelist
name match.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr33039.diff
Type: text/x-patch
Size: 604 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070810/7336d2b6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: namelist_36.f90
Type: text/x-fortran
Size: 1102 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070810/7336d2b6/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr17286.f90
Type: text/x-fortran
Size: 1115 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070810/7336d2b6/attachment-0002.bin>
More information about the Fortran
mailing list