2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
8 COMPILER_VERSION --- Compiler version string
9 ********************************************
11 .. index:: COMPILER_VERSION, compiler, name and version, version of the compiler
13 .. function:: COMPILER_VERSION()
15 ``COMPILER_VERSION`` returns a string with the name and the
16 version of the compiler.
19 The return value is a default-kind string with system-dependent length.
20 It contains the name of the compiler and its version number.
26 Inquiry function of the module ``ISO_FORTRAN_ENV``
29 .. code-block:: fortran
31 STR = COMPILER_VERSION()
37 .. code-block:: fortran
40 print '(4a)', 'This file was compiled by ', &
41 compiler_version(), ' using the options ', &
46 :ref:`COMPILER_OPTIONS`,
47 :ref:`ISO_FORTRAN_ENV`