This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Re: namelist with fortran77 ?


Dominique,

I posted this as pr28607 and then found the relevant standard sections. This is not a bug. F95 Standard requires quotes or apostrophes on input to avoid
ambiguity and the DELIM specifier is ignored for inputs.


Note 10.33, in 10.9.1.3 says:

"A character sequence corresponding to a namelist input item of character data type shall be delimited either with apostrophes or 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.3.4.9)."

which is what Jerry amply paraphrased above. The reason that I have quoted directly is to amplify that this is a standard requirement and not something we have done for the ease of implementation. We did discuss how this might be relaxed and concluded that it would be difficult going on impossible and certainly not worth a non-standard feature.

Cheers

Paul


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