Compatibility between Compaq Visual Fortran and gfortran
Paul Thomas
paulthomas2@wanadoo.fr
Tue Feb 15 21:08:00 GMT 2005
>Actually it isn't standard fortran, the standard explicitly prohibits it
>[1].
>It also assumes the default integer is four characters long, which is not
>portable.
Good Heavens, you are right! When I think of all the code that uses
equivalence (integer,character)... Each and every compiler that I have
access to accepts this non-standard feature; to the extent that I did not
think to verify my remark. Rats!
Jens,
In answer to your question about the output being different: just look at
the format specifiers - there are no spaces (1X) in the 2nd program. If you
bear that in mind, you will see that the numerical content of the output is
the same.
Paul T
More information about the Fortran
mailing list