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

* [Bug libfortran/13738] [gfortran] Run-time error: "Internal error" on correct input to READ with NAMELIST
  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 ` pinskia at gcc dot gnu dot org
  2004-01-19 13:54 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-19 13:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-19 13:25 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-19 13:25:46
               date|                            |
            Summary|Run-time error: "Internal   |[gfortran] Run-time error:
                   |error" on correct input to  |"Internal error" on correct
                   |READ with NAMELIST          |input to READ with NAMELIST
   Target Milestone|---                         |tree-ssa


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


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

* [Bug libfortran/13738] [gfortran] Run-time error: "Internal error" on correct input to READ with NAMELIST
  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
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-19 13:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-19 13:54 -------
*** Bug 13739 has been marked as a duplicate of this bug. ***

-- 


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


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

* [Bug libfortran/13738] [gfortran] Run-time error: "Internal error" on correct input to READ with NAMELIST
  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
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-26 12:43 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.5.0                       |---


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


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

* [Bug libfortran/13738] Run-time error: "Internal error" on correct input to READ with NAMELIST
  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
                   ` (2 preceding siblings ...)
  2004-05-26 12:43 ` pinskia at gcc dot gnu dot org
@ 2004-08-10 14:57 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-10 14:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-10 14:57 -------
Fixed by:
2004-08-10  Victor Leikehman  <lei@il.ibm.com>

        * io/list_read.c (namelist_read): Convert variable names
        to lower case, so that mixed-case names are recognized.

        * io/list_read.c (namelist_read): Don't read beyond
        terminating slash.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.5.0


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).