------- Comment #1 from burnus at gcc dot gnu dot org  2008-07-22 09:01 -------
"10.10.2 Namelist output"

"The form of the output produced is the same as that required for input, except
for the forms of real, character, and logical values. The name in the output is
in upper case. With the exception of adjacent undelimited character values, the
values are separated by one or more blanks or by a comma, or a semicolon if the
decimal edit mode is COMMA, optionally preceded by one or more blanks and
optionally followed by one or more blanks."

"The processor may begin new records as necessary."

 * * *

"9.3 Internal files"
"(2) A record of an internal file is a scalar character variable."
"(3) If the file is a scalar character variable, it consists of a single record
whose length is the same as the length of the scalar character variable. If the
file is a character array, it is treated as a sequence of character array
elements."

 * * *

Thus I think Richard is right that having new-line characters is wrong (at
least for scalar variables). At least I believe that new-line characters can be
regarded as starting a new record.


-- 


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

Reply via email to