re PR fortran/13278 (derived type namelist I/O support missing, causes ICE)
authorVictor Leikehman <lei@il.ibm.com>
Wed, 18 Aug 2004 01:20:06 +0000 (01:20 +0000)
committerPaul Brook <pbrook@gcc.gnu.org>
Wed, 18 Aug 2004 01:20:06 +0000 (01:20 +0000)
commit3bc268e64b4167a3566c8b53decda0b06668f6fe
treeee99eee77195e9d423d2ec6b517c2cf6ab9bae94
parentb14454ba1a4d273021e354ff30f02f754fedb121
re PR fortran/13278 (derived type namelist I/O support missing, causes ICE)

2004-08-18  Victor Leikehman  <lei@il.ibm.com>

PR fortran/13278
* trans-io.c (transfer_namelist_element): New. Recursively handle
derived-type variables.  Pass string lengths.
(build_dt): Code moved to build_namelist, with some
changes and additions.
(gfc_build_io_library_fndecls): Declare the fifth
argument in st_set_nml_var_char -- string_length.
libgfortran/
* io/transfer.c (st_set_nml_var)
* io/write.c (namelist_write): Allow var_name and var_name_len to be
null. For strings, use string_length field instead of len.
* io/io.h (struct namelist_type): New field string_length.
(st_set_nml_var_char): New argument string_length.

From-SVN: r86166
gcc/fortran/ChangeLog
gcc/fortran/trans-io.c
libgfortran/ChangeLog
libgfortran/io/io.h
libgfortran/io/transfer.c
libgfortran/io/write.c