iso_fortran_env integer and real variable kinds

I want to use the intrinsic iso_fortran_env module to get the int8, int16, int32, int64, real32, real64 kind values. For example:

use, intrinsic :: iso_fortran_env, only: int64

integer  (kind=int64), parameter :: huge64 = huge(1_int64)

I get the following error with PGI Fortran 11.5:
PGF90-S-0084-Illegal use of symbol int64 - not public entity of module

Any tips?

I just learned that the variable kinds are Fortran 2008, not Fortran 2003. Do you know when they will be supported by PGI?

Hi David,

Our engineers are finishing up F2003 right now (fixing bugs) and will then turn there attention to F2008. No firm time line yet but they’ll most likely start with these easy ones. Co-arrays will be awhile though.

Though, these seem like they would be extremely easy to add. I just submitted a feature request (TPR#17879) and hopefully engineering can add them soon.

  • Mat

TPR 17879 has been fixed in the current 14.1 release.

thanks,
dave