COMPILER_VERSION (Fortran 2008)

Class

Specification inquiry function.

Argument types and attributes

None.

Result type and attributes

Character scalar.

Result value

The result value contains the name and version information of the compiler that compiles the current compilation unit.

Example

USE, INTRINSIC :: ISO_FORTRAN_ENV
CHARACTER(*), PARAMETER :: version = COMPILER_VERSION()

WRITE(output_unit, *, delim = 'quote') version
END