Silverfrost Forums

Welcome to our forums

INTEGER(8) :: sdf_bytes(1)

20 Jun 2022 11:05 #29066

Why compiler gives error 62 here Invalid KIND Specifier ?

21 Jun 2022 1:13 #29068

Because FTN95 integer kinds have to be chosen from {1, 2, 3, 4, 7}.

See your FTN95 documentation, consider using the iso_fortran_env module, and consider using the /ALT_KINDS option.

21 Jun 2022 6:11 #29069

Thanks. Should 8 be also added? Based on Make file of Epoch code 5 other Fortran compilers swallow this no problem

21 Jun 2022 7:10 #29070

Native integer kinds: 1 = INTEGER1 2 = INTEGER2 3 = INTEGER4 4 = INTEGER8

When using /ALT_KINDS 1 = INTEGER1 2 = INTEGER2 4 = INTEGER4 8 = INTEGER8

FTN95 can be configured to use /ALT_KINDS by default. See /CONFIG.

21 Jun 2022 7:47 #29071

Yes, thanks, but why not to take alt_kinds KINDS as a default for FTN95 if all other compilers use it which typically means de-facto default ? I never used this confusing to me FTN95 KIND scheme besides KIND=7 lately with 64bit Clearwin only.

The KIND=7 still can be used as an extension if other compilers already have no collision with this.

21 Jun 2022 11:32 #29072

Dan

why not to take alt_kinds KINDS as a default for FTN95

Rightly or wrongly that was the choice at the beginning. After that a change would break existing code.

As I mentioned above, users can configure FTN95 to make /ALT_KINDS the default.

Please login to reply.