]>
Commit | Line | Data |
---|---|---|
c63539ff ML |
1 | .. |
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. | |
5 | ||
6 | .. _compiler_version: | |
7 | ||
8 | COMPILER_VERSION --- Compiler version string | |
9 | ******************************************** | |
10 | ||
11 | .. index:: COMPILER_VERSION, compiler, name and version, version of the compiler | |
12 | ||
13 | .. function:: COMPILER_VERSION() | |
14 | ||
15 | ``COMPILER_VERSION`` returns a string with the name and the | |
16 | version of the compiler. | |
17 | ||
18 | :return: | |
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. | |
21 | ||
22 | Standard: | |
23 | Fortran 2008 | |
24 | ||
25 | Class: | |
26 | Inquiry function of the module ``ISO_FORTRAN_ENV`` | |
27 | ||
28 | Syntax: | |
29 | .. code-block:: fortran | |
30 | ||
31 | STR = COMPILER_VERSION() | |
32 | ||
33 | Arguments: | |
34 | None | |
35 | ||
36 | Example: | |
37 | .. code-block:: fortran | |
38 | ||
39 | use iso_fortran_env | |
40 | print '(4a)', 'This file was compiled by ', & | |
41 | compiler_version(), ' using the options ', & | |
42 | compiler_options() | |
43 | end | |
44 | ||
45 | See also: | |
46 | :ref:`COMPILER_OPTIONS`, | |
3ed1b4ce | 47 | :ref:`ISO_FORTRAN_ENV` |