------- Comment #3 from burnus at gcc dot gnu dot org  2008-08-17 19:21 -------
Confirm. As Jerry pointed out it is not restricted to Windows.
I created my test case using:
   printf '1.2\n2.3\n3.4' > input

Fortran test case:
      REAL :: a, b, c
      OPEN(UNIT=10,FILE='input',access='stream',form='unformatted')
      write(10) '1.2'//achar(10)//'2.2'//achar(10)//'3.'
      call fputc(10,'3')
      close(10)
      open(unit=10,file='input',form='formatted')
      READ(10,*) a, b, c
      PRINT*, a*b*c
      END

The printf-generated test file works with g77, g95, NAG f95, ifort, sunf95 and
openf95. (Strictly speaking the standard presumably allows the gfortran
behaviour, nevertheless it should be fixed.)


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
  GCC build triplet|i586-pc-mingw32             |
   GCC host triplet|winXP 32bit                 |
 GCC target triplet|winXP 32bit                 |
   Last reconfirmed|0000-00-00 00:00:00         |2008-08-17 19:21:10
               date|                            |
            Summary|Formatted read of line      |Formatted read of line
                   |without trailing new-line   |without trailing new-line
                   |fails (Windows; CR-LF       |fails
                   |issue?)                     |


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

Reply via email to