public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/18398] New: Formatted I/O problems
@ 2004-11-09 14:01 sfilippone at uniroma2 dot it
  2004-11-09 14:03 ` [Bug libfortran/18398] " sfilippone at uniroma2 dot it
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: sfilippone at uniroma2 dot it @ 2004-11-09 14:01 UTC (permalink / raw)
  To: gcc-bugs

The attached test case ought to exactly reproduce its input, and it does not on
two counts: 1. There are missing lines in the output 2. It gives a run time error. 
The runtime error appears similar to that of bug 17597, but this is on formatted
I/O.  If the source is compiled with g77 it produces correct output. 
[sfilippo@localhost BOWL]$ gfortran -v 
Reading specs from /home/local/gfortran/bin/../lib/gcc/i686-pc-linux-gnu/4.0.0/specs
Configured with: ../gcc-4.0-20041107/configure --prefix=/usr/local/gfortran
Thread model: posix
gcc version 4.0.0 20041107 (experimental)
[sfilippo@localhost BOWL]$ g77 -o rnp77 rnp.f
[sfilippo@localhost BOWL]$ gfortran -o rnp rnp.f
[sfilippo@localhost BOWL]$ ./rnp77 <itr >r77
[sfilippo@localhost BOWL]$ ./rnp <itr >rout
At line 47 of file rnp.f
Fortran runtime error: End of file
[sfilippo@localhost BOWL]$ diff rout r77 
7a8
>   cafilm    0.0000    
9a11
>   pgssw     0.0000    
12a15
>   dtmax    0.31100E-04
16a20
>   bore      8.2000    
20a25
>   datdct    0.0000    
22a28
>   swipro    3.1100    
23a30
>   sector    0.0000    

..... etc

-- 
           Summary: Formatted I/O problems
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sfilippone at uniroma2 dot it
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu


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


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

end of thread, other threads:[~2005-01-07 14:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-09 14:01 [Bug libfortran/18398] New: Formatted I/O problems sfilippone at uniroma2 dot it
2004-11-09 14:03 ` [Bug libfortran/18398] " sfilippone at uniroma2 dot it
2004-11-09 14:03 ` sfilippone at uniroma2 dot it
2004-11-26 14:34 ` bdavis at gcc dot gnu dot org
2004-11-27 15:34 ` bdavis at gcc dot gnu dot org
2005-01-04 22:20 ` Thomas dot Koenig at online dot de
2005-01-04 22:31 ` Thomas dot Koenig at online dot de
2005-01-05  8:34 ` Thomas dot Koenig at online dot de
2005-01-06  6:13 ` bdavis at gcc dot gnu dot org
2005-01-06 14:41 ` tobi at gcc dot gnu dot org
2005-01-07  3:25 ` cvs-commit at gcc dot gnu dot org
2005-01-07 14:01 ` 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).