Fortran 2008 added COMPILER_VERSION and COMPILER_OPTIONS functions to intrinsic module ISO_FORTRAN_ENV, These are nice, but they can't be used in constant expressions, despite their being compile-time constant.
10.1.2 has a carve-out for transformational intrinsics from IEEE_ARITHMETIC and IEEE_EXCEPTIONS when all arguments are constant expressions. I would like to see this extended to ISO_FORTRAN_ENV
In addition, many users have asked for a way to save the compile date/time in the code. One can sometimes do this with a preprocessor, but a COMPILE_DATE_TIME or such function in ISO_FORTRAN_ENV would round out the existing support.
Fortran 2008 added
COMPILER_VERSION
andCOMPILER_OPTIONS
functions to intrinsic moduleISO_FORTRAN_ENV
, These are nice, but they can't be used in constant expressions, despite their being compile-time constant.10.1.2 has a carve-out for transformational intrinsics from
IEEE_ARITHMETIC
andIEEE_EXCEPTIONS
when all arguments are constant expressions. I would like to see this extended toISO_FORTRAN_ENV
In addition, many users have asked for a way to save the compile date/time in the code. One can sometimes do this with a preprocessor, but a
COMPILE_DATE_TIME
or such function inISO_FORTRAN_ENV
would round out the existing support.