This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Fortran g77


I wrote:

> 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:

  ^^  Should be: Yes, 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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]