Paul,
Sorry about the confusion. We previously discussed /alt_kind in Feb-07. At that time I was finding problems with it's use.
I am yet to download Ver 5.40, but have recently noted that Ver 5.30 does not work. ( I always wait a while to see what others find. I've only just stoped running Ver 4.9 as a backup check of Ver 5.3 )
My apologies as I should have read the Ver 5.40 release notes that mentions /alt_kind.
Based on my post last night, could you consider an extension to FTN95 to support an extended set of kind values;
for Real and Complex, always include 4, 8 and 10 as valid values
for Integer, include 8
for Logical, include 4
The only problem came about when INTEGER8 was introduced, which I recall as recent ! For Integers, when kind=4, or nn_4 is used, then the compiler should issue a warning about ambiguity or non-portability. I must admit that this could get messy, as '1234_n' is valid and when n=4 can be a 64 bit or 32 bit value, depending on /alt_kind. Infortunately, I think the only way to provide an integer8 constant is using this number format. If n has been derived from selected_int_kind then a warning would be misleading.
Back on the introduction of KIND
Back in the 70's and 80's I did a lot of work on converting programs of unknown origin to Prime, Vax and PC. Control Data was fairly common to me, but there were a few English computers with wierd precision which always caused a lot of problems. Does anyone remember IBM fortran? What a nightmare! Practical Fortran 4 and Fortran 77 programs always mixed integer, real and character/hollerith in the same memory locations. It was increadibly frustrating that realn and integer4 was not enforced, as this was the clearest and most concise way of describing the precision of variable declarations, especially reals. I wonder how much experience in fortran programming some of the members of the standards comittee had. They certainly keep introducing program constructs that I, as a fortran programmer, do not use!
John