public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/43155]  New: Reading real numbers of the form "123+ 44" (with space)
@ 2010-02-23 20:58 burnus at gcc dot gnu dot org
  2010-02-23 21:28 ` [Bug fortran/43155] " kargl at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-02-23 20:58 UTC (permalink / raw)
  To: gcc-bugs

The following program runs with ifort, sunf95, and pathscale, but it fails with
gfortran, NAG f95 and g95. I think the number is not standard conform, but a
"processor" is allowed to accept it. For "a" ifort et al. print "4380000.0".


Additionally, I have the feeling that there is an off-by-one error in the error
message; at least I expect "2" rather than "3" in the message.


At line 4 of file test.f90
Fortran runtime error: Expected REAL for item 3 in formatted transfer, got
INTEGER



character(len=200) :: str
real :: x
str = ' 4.38000+ 6 2.55100+ 0 4.50000+ 6 2.51970+ 0 5.00000+ 6 2.40000+ 01146 3
1 171'
read(str,'(6e11.0,i4,i2,i3,i5)') a,math,mfh,mth,nsp
print *, a
end


-- 
           Summary: Reading real numbers of the form "123+ 44" (with space)
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


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

end of thread, other threads:[~2010-02-27 19:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-23 20:58 [Bug fortran/43155] New: Reading real numbers of the form "123+ 44" (with space) burnus at gcc dot gnu dot org
2010-02-23 21:28 ` [Bug fortran/43155] " kargl at gcc dot gnu dot org
2010-02-24  2:55 ` jvdelisle at gcc dot gnu dot org
2010-02-24  4:01 ` jvdelisle at gcc dot gnu dot org
2010-02-24  7:06 ` burnus at gcc dot gnu dot org
2010-02-25  5:52 ` jvdelisle at gcc dot gnu dot org
2010-02-27 19:26 ` [Bug fortran/43155] I/O error message: Off-by one position of edit descriptor burnus 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).