This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/37707] Namelist read of array of derived type incorrect



------- Comment #18 from burnus at gcc dot gnu dot org  2008-10-18 15:12 -------
I think your program is valid. For "tag = list of strings" in a namelist the
quotes are required and delim= is ignored for namelist read/write.

See:

"10.10.1.3 Namelist group object list items"
[...]
"When the next effective item is of type character, the input form consists of
a delimited sequence of zero or more rep-char s whose kind type parameter is
implied by the kind of the corresponding list item. Such a sequence may be
continued from the end of one record to the beginning of the next record, but
the end of record shall not occur between a 1 doubled apostrophe in an
apostrophe-delimited sequence, nor between a doubled quote in a quote-delimited
sequence. The end of the record does not cause a blank or any other character
to become part of the sequence. The sequence may be continued on as many
records as needed. The characters blank, comma, and slash may appear in such
character sequences."

"NOTE 10.35  A character sequence corresponding to a namelist input item of
character type shall be delimited either with apostrophes or with quotes. The
delimiter is required to avoid ambiguity between undelimited character
sequences and object names. The value of the DELIM= specifier, if any, in the
OPEN statement for an external file is ignored during namelist input
(9.4.5.6)."


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37707


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]