Re: Logicals converted to integers during reading



Bálint Aradi wrote:
Hi,

I'd like to ask, if anybody knows what the standard says about the
conversion of "F", "T", ".f.", and ".t." to integers during reading.
For example:

program test

integer :: a

read(*,*) a
print *, "Value of a: ", a

end program test

The standard says that you can't do that. If you do it, then the
standard doesn't specify what happens. This does not make a compiler
which does the conversion non-conforming.

I'll go on record as saying that I hate this feature too, and keep
lobbying to have it abolished (or at least not the default). My advice
is to file a complaint about the behavior with Intel Premier Support
requesting that the behavior be changed.

Steve

.



Relevant Pages