COMPILER_VERSION
returns a string with the name and the version of the compiler.
Fortran 2008
Inquiry function of the module ISO_FORTRAN_ENV
STR = COMPILER_VERSION()
None.
The return value is a default-kind string with system-dependent length. It contains the name of the compiler and its version number.
use iso_fortran_env print '(4a)', 'This file was compiled by ', & compiler_version(), ' using the options ', & compiler_options() end
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-7.2.0/gfortran/COMPILER_005fVERSION.html