------- Comment #4 from burnus at gcc dot gnu dot org  2009-02-03 10:02 -------
> I believe gfortran is correct as far as giving an error.  The last logical
> value does not begin with a T(t) or F(f).

That was my impression in comment 0 ("maybe wontfix"), which was confirmed by
the standard (comment 2); when I filled I was unsure since so many compilers
support it. (I encountered it in Fleur (www.flapw.de) and it took me a while to
figure out what was wrong.)

> The only thing remaining here to me is are we attempting to read past the end
> of record with the error case and so should we really be giving an EOR.

Hmm, I wonder whether it should be EOR. NAG f95 and g95 also give an error for
an invalid logical and not an EOR.
("No value found in LOGICAL input field", "Bad value on logical read")

Testing for "iostat=" using IS_IOSTAT_EOR(I),IS_IOSTAT_END(I), gives with all
three compilers a F(alse).

Thus, I would suggest WONTFIX.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39072

Reply via email to