public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/25039]  New: broken formatted I/O
@ 2005-11-25 21:25 iwan at irs dot phy dot nrc dot ca
  2005-11-25 22:00 ` [Bug libfortran/25039] " jvdelisle at gcc dot gnu dot org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: iwan at irs dot phy dot nrc dot ca @ 2005-11-25 21:25 UTC (permalink / raw)
  To: gcc-bugs

I get a runtime error on the following simple program:
cat simple.f
      program junk
      read(5,'(2i9)') i1,i2
      write(6,*) i1,i2
      end
gfortran simple.f
./a.out
1,1
At line 2 of file simple.f
Fortran runtime error: Bad value during integer read

Contrary to that:
g77 simple.f
./a.out
1,1
 1 1

A similar error occurs when reading floating point numbers 
using e.g. F10.0:
cat simple1.f
      program junk
      read(5,'(2f9.0)') x1,x2
      write(6,*) x1,x2
      end
gfortran simple1.f
./a.out
1,1
At line 2 of file simple1.f
Fortran runtime error: Bad value during floating point read

g77 simple1.f
./a.out
1,1
  1.  1.


-- 
           Summary: broken formatted I/O
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: iwan at irs dot phy dot nrc dot ca
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

end of thread, other threads:[~2006-01-01  5:27 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-25 21:25 [Bug libfortran/25039] New: broken formatted I/O iwan at irs dot phy dot nrc dot ca
2005-11-25 22:00 ` [Bug libfortran/25039] " jvdelisle at gcc dot gnu dot org
2005-11-26  1:35 ` jvdelisle at gcc dot gnu dot org
2005-11-26  9:58 ` fxcoudert at gcc dot gnu dot org
2005-11-26 19:10 ` jvdelisle at gcc dot gnu dot org
2005-11-28 20:23 ` iwan at irs dot phy dot nrc dot ca
2005-11-29  0:08 ` kargl at gcc dot gnu dot org
2005-11-29  0:35 ` iwan at irs dot phy dot nrc dot ca
2005-11-29  1:55 ` kargl at gcc dot gnu dot org
2005-11-29  2:28 ` jvdelisle at gcc dot gnu dot org
2005-11-29  3:50 ` jvdelisle at gcc dot gnu dot org
2005-12-09  2:53 ` [Bug libfortran/25039] comma short-circuit field width jvdelisle at gcc dot gnu dot org
2005-12-09  2:57 ` jvdelisle at gcc dot gnu dot org
2005-12-16 20:37 ` [Bug libfortran/25039] [4.1 only] " jvdelisle at gcc dot gnu dot org
2005-12-16 20:40 ` jvdelisle at gcc dot gnu dot org
2005-12-19  7:20 ` jvdelisle at gcc dot gnu dot org
2006-01-01  5:27 ` 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).