[gfortran/patch] Support NAMELIST I/O of derived type variables (compiler side)

Victor Leikehman lei@haifasphere.co.il
Thu Aug 12 07:25:00 GMT 2004


This is the compiler side part of the fix that adds support of NAMELIST I/O of
derived type variables.  Library fix to appear in a separate message.

Some remarks:

1. I am not entirely satisfied with the name "build_namelist".  Improvements are
   welcome.

2. In a similar fix to transfer_expr, Paul added call to gfc_evaluate_now.
   I don't understand if it should be here as well.

3. String support was broken (passed only the first character).  I pass
   now the string length in the kind field.  Not sure if this is the right
   approach.

4. Array support is still broken.  Volunteers are welcome.


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

	* trans-io.c (build_namelist): New. Recursively handle derived-type
	variables, in addition to the scalars.  For strings, pass their length.
	(build_dt): Code moved to build_namelist, with some changes and
	additions.

-- 
  Victor Leikehman
  IBM Research Labs in Haifa, Israel

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: trans-io.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20040812/d76f3813/attachment.ksh>


More information about the Fortran mailing list