This time, the right bug report...
CR-LF (the DOS convenction for text files) as record separators
don't work for list-directed input.
$ cat dosfile.f
program main
write (10,'(2A)') '1',achar(13)
rewind(10)
read(10,*) n
print *,n
end
$ gfortran dosfile.f
$ ./a.out
At line 4 of file dosfile.f
Fortran runtime error: Bad integer for item 1 in list input
$ g77 dosfile.f
$ ./a.out
1
$ od -c fort.10
0000000 1 \r \n
0000003
$ gfortran -v
Using built-in specs.
Configured with: ../gcc/configure --prefix=/home/ig25 --enable-languages=c,f95
Thread model: posix
gcc version 4.0.0 20050127 (experimental)
--
Summary: DOS files don't work for list directed input
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Thomas dot Koenig at online dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19678