1 Oct 07:11
[patch, libfortran] PR33253 namelist: reading back a string with apostrophe
Jerry DeLisle <jvdelisle <at> verizon.net>
2007-10-01 05:11:42 GMT
2007-10-01 05:11:42 GMT
:ADDPATCH fortran: Hi all, After a lot of fussing, I think I have sorted this out. The attached patch includes my original fix to this pr which checked for delimiters to decide whether to terminate reading. In addition, this patch adjusts the conditions that allow extended reads of namelists. This now requires -std=legacy. The reason is that all these cases with non standard namelists such as extra data or no delimiters end up conflicting. The mechanism for handling these is present, its a matter of choice when to allow what. With this patch, non-delimited (no ' or ") strings work by default. The test case namelist_24.f90 is modified to -std=legacy. Two new test cases are provided. The test case namelist_39.f90 is derived from Toon Moene's case in pr33421. I want to mention that according to the F95 standard, character strings in namelists are supposed to be delimited. People should do that. (strong hint to anyone reading this :) ). Regression tested on x86-64. OK for trunk? Regards,(Continue reading)
RSS Feed