This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Fortran g77
- To: Björn Hermansson <Bjorn dot R dot Hermansson at telia dot se>
- Subject: Re: Fortran g77
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Thu, 01 Nov 2001 21:26:59 +0100
- CC: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <778DFE9B4E3BD111A74E08002BA3DC0D0BA268@trab-hermes.haninge.trab.se>
Björn Hermansson wrote:
> The fortran code in the following attachment will not read the second read
> statment
> when the first read statmanet is given a crtl-d (end-of-file) from
> the terminal. Is this how it is supposed to be ????
integer ier,i
read (5,*,iostat=ier) i
write (6,*) i,ier
read (5,*,iostat=ier) i
write (6,*) 'bye bye',i,ier
end
No, see:
http://www.fortran.com/F77_std/rjcnf-12.html#sh-12.7
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)