This program:

      character*20 a(3)
      namelist / nam / a
      read (4, nml=nam)
      write(6, nml=nam)
      end

given the following input (fort.4):

 &nam
 a(1)='aap noot mies wim zus jet',
 a(2)='surf.pressure',
 a(3)='apekool',
 /

produces the following output:

&NAM
 A=aap noot mies wim zu,a(2)='surf.pressure',a(3)='apekool'      ,  /

This mixing of quoted and unquoted strings cannot be correct.  The a(2) and
a(3) are weird.


-- 
           Summary: Weird quotation of namelist output of character arrays.
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: toon at moene dot indiv dot nluug dot nl


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

Reply via email to