ISO_FORTRAN_ENV function COMPILER_VERSION

Standard: F77 F90 F95 F2003 F2008 F2018 Example program


<Syntax>

USE ISO_FORTRAN_ENV, ONLY:COMPILER_VERSION

COMPILER_VERSION ( )

Result : Scalar default character string.

<Semantics>

COMPILER_VERSION is a module function in the intrinsic module ISO_FORTRAN_ENV, which returns a string identifying the version of the compiler used to compile the source code. The function can be used in a constant expression, e.g. to initialise a variable with the compiler version information.

<Related>

ISO_FORTRAN_ENV function COMPILER_OPTIONS