[PATCH, libgfortran] PR24794 namelist input of character array
Jerry DeLisle
jvdelisle@verizon.net
Sun Nov 20 01:55:00 GMT 2005
:ADDPATCH fortran:
Hi All
The attached patch addresses automatically filling out a character array when
the namelist input is left incomplete (short). Two previous testcases have to
be revised to correctly use the delim parameter in the OPEN statements
(namelist_14.f90 and namelist_15.f90). A new testcase derived from the bugzilla
example is given as well.
As a follow-on I will check that all other types are handled correctly in this
situation, not just character types.
2005-11-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/24794
* io/list_read.c (read_character): Add auto completion on short
namelist reads.
Regression tested.
Is this OK for trunk? OK for 4.0-branch?
Regards,
Jerry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: list_read.diff
Type: text/x-patch
Size: 763 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20051120/be35fc0c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: namelist_14.f90
Type: application/x-extension-f90
Size: 3163 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20051120/be35fc0c/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: namelist_15.f90
Type: application/x-extension-f90
Size: 1823 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20051120/be35fc0c/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: namelist_21.f90
Type: application/x-extension-f90
Size: 1231 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20051120/be35fc0c/attachment-0003.bin>
More information about the Fortran
mailing list