This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Internal file READ statement
- From: Salvatore Filippone <sfilippone at uniroma2 dot it>
- To: fortran at gcc dot gnu dot org
- Date: Tue, 31 Aug 2004 15:35:06 +0200
- Subject: Internal file READ statement
Snapshot 20040829, i686 linux.
The attached code generates the following (IMHO misleading) error
message.
[sfilippo@euler RUNS]$ ./try
At line 8 of file try.f90
Fortran runtime error: No such device
program try
character(8) :: buffer
integer :: i
buffer = '00000010'
read(buffer,*) j
print *,j
stop
end program try
Same code works if written as
read(buffer,'(i8)') j
Bug, feature, user error, ???
Thanks
--
Salvatore Filippone -- sfilippone@NOSPAMuniroma2.it