[Bug fortran/17472] New: namelist does not handle arrays

bdavis at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Sep 14 00:15:00 GMT 2004


namelist I/O treats an array like a scalar:

$ cat h.f
       integer a(10)
       data a / 1,2,3,4,5,6,7,8,9,10 /
       namelist /ints/ a
       write(6,ints)
       end

$ gfc h.f
$ ./a.out
&ints
a=          1,/
&end
$ g77 h.f
$ ./a.out
&INTS
 A = 1 2 3 4 5 6 7 8 9 10/

-- 
           Summary: namelist does not handle arrays
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bdavis at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list