public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/13738] New: Run-time error: "Internal error" on correct input to READ with NAMELIST
@ 2004-01-19 13:20 lei at il dot ibm dot com
  2004-01-19 13:25 ` [Bug libfortran/13738] [gfortran] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: lei at il dot ibm dot com @ 2004-01-19 13:20 UTC (permalink / raw)
  To: gcc-bugs

Version: tree-ssa-20040112.tar

The following program namelist_bug.f90:

      NAMELIST /GALGELINPUT/ A,B,C
      READ (5,NML=GALGELINPUT)
      WRITE (6, NML=GALGELINPUT)
      END

Compiles okay, but when run with 
the input &GALGELINPUT A = 1., B = 2., C = 3./
reports Internal error:

% gfortran -ffixed-form --static namelist_bug.f90
% a.out
&GALGELINPUT A = 1., B = 2., C = 3./
At line 2 of file namelist_bug.f90
Internal Error: Can not found a valid namelist var!

Same program, when compiled with g77, produces the
correct output:

% g77 namelist_bug.f
% a.out
&GALGELINPUT A = 1., B = 2., C = 3./
&GALGELINPUT 
 A =  1., 
 B =  2., 
 C =  3./

-- 
           Summary: Run-time error: "Internal error" on correct input to
                    READ with NAMELIST
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lei at il dot ibm dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-08-10 14:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-19 13:20 [Bug libfortran/13738] New: Run-time error: "Internal error" on correct input to READ with NAMELIST lei at il dot ibm dot com
2004-01-19 13:25 ` [Bug libfortran/13738] [gfortran] " pinskia at gcc dot gnu dot org
2004-01-19 13:54 ` pinskia at gcc dot gnu dot org
2004-05-26 12:43 ` pinskia at gcc dot gnu dot org
2004-08-10 14:57 ` [Bug libfortran/13738] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).