Re: Short records on unformatted reads



Thomas Koenig <Thomas.Koenig@xxxxxxxxx> wrote:

If I replace the line
read (10, err=20) ia
with
read (10, err=20) ia(1), ia(2)
or
read (10, err=20) (ia(i),i=1,2)

(and add integer::i as appropriate above)

then I would expect ia(1) to be defined, though.

You can expect what you want, but I don't think that's what the standard
says. I'm fairly sure it says that all the variables in the input list
become undefined. But I need to go - no time to look it up.

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.