Gfortran should read a namelist from a file that has not
been given a name on an open statement from the fort.n
where n is the unit number in the read statement.
(this a defacto standard way to do it on Unix systems).
Hmm, in lynx I do not see the attach file option, so here goes:
      namelist /nlist/ i, a
      read(9,nlist)
      write(6,nlist)
      end
with the following contents of fort.9:
 &nlist i=1, a=3.5 /
should print the namelist to stdout, not give "end of file".
It works if you add "open(9,file='fort.9')" before the read.
Blocks: HIRLAM.


-- 
           Summary: [regression wrt g77] A namelist read from an unnamed
                    file should read from fort.n
           Product: gcc
           Version: 4.0.3
            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=25116

Reply via email to