[patch, libfortran] PR33672 Additional runtime checks needed for namelist reads
Jerry DeLisle
jvdelisle@verizon.net
Mon Oct 8 13:03:00 GMT 2007
:ADDPATCH fortran:
Hi all,
The attached patch provides additional run-time checks to namelist reading to
assure that namelist file contents comply with the F95 standard.
Since gfortran was permitting bogus qualifiers, this could affect users who may
have been doing things incorrectly. However, gfortran does WRITE namelists
correctly so files generated using gfortran to write them will work fine.
New test case provided.
Regression tested on x86-64.
OK to commit.
Regards,
Jerry
2007-10-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/33672
* io/list_read.c (nml_parse_qualifier): Add character specific error
messages. Check for proper form of sub-string qualifiers. Return the
parsed_rank flag indicating a non-zero rank qualifier.
(nml_get_obj_data): Count the instances of non-zero rank qualifiers.
Issue an error if more that one non-zero rank qualifier is found.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr33672-a.diff
Type: text/x-patch
Size: 6929 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071008/18af3252/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: namelist_40.f90
Type: text/x-fortran
Size: 1671 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071008/18af3252/attachment-0001.bin>
More information about the Fortran
mailing list