[patch, libfortran] PR33253 namelist: reading back a string with apostrophe

Dominique Dhumieres dominiq@lps.ens.fr
Mon Oct 1 15:09:00 GMT 2007


> Any comment on the behavior we want would be appreciated.

In http://gcc.gnu.org/ml/fortran/2005-12/msg00492.html I have reported that
gfortran.dg/namelist_15.f90  did not pass with the compilers I have tested
at that time due to the line:

  write (10, '(A)') " x%m%ch(:)(2) = 'z','z','z','z','z','z','z','z',"

which is not following the standard requirement:

> "Only one part of the structure component may have nonzero rank.  Either
> the rightmost comp_name must have a section_subscript_list with nonzero
> rank, or another part must have nonzero rank." (IBM manual)

for structure components. Apparently most compilers apply it also for
namelists. As far as I remember this question has never been answered.
So it may be the right time now!-)

Dominique



More information about the Fortran mailing list