# Fortran 2018 standard issue

**URL:** <https://fortran-lang.discourse.group/t/fortran-2018-standard-issue/743>\
**Category:** Uncategorized\
**Created:** [February 21, 2021, 6:23pm UTC](https://fortran-lang.discourse.group/t/fortran-2018-standard-issue/743 "2021-02-21T18:23:13Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![han190](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/han190/32/7158_2.png) [@han190](https://fortran-lang.discourse.group/u/han190)\
**Post date:** [February 21, 2021, 6:23pm UTC](https://fortran-lang.discourse.group/t/fortran-2018-standard-issue/743/1 "2021-02-21T18:23:13Z")

</div>

When I compile my code using Intel Fortran Compiler with `-stand=f18`, I get a warning

```auto
warning #7416: Fortran 2018 does not allow this intrinsic procedure. [COMPILER_VERSION]
warning #7416: Fortran 2018 does not allow this intrinsic procedure. [COMPILER_OPTIONS]

```

I believe both of them are still part of fortran2018 standard but I am not sure. So, are these features deprecated and why is that?

---

<div class="post-metadata">

**Author:** ![IanBush](https://avatars.discourse-cdn.com/v4/letter/i/e495f1/32.png) [@IanBush](https://fortran-lang.discourse.group/u/IanBush)\
**Post date:** [February 21, 2021, 7:30pm UTC](https://fortran-lang.discourse.group/t/fortran-2018-standard-issue/743/2 "2021-02-21T19:30:37Z")

</div>

According to MR&C they should be fine. Have you used iso\_fortran\_env where you are invoking the routines?

---

<div class="post-metadata">

**Author:** ![FortranFan](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@FortranFan](https://fortran-lang.discourse.group/u/FortranFan)\
**Post date:** [February 21, 2021, 10:01pm UTC](https://fortran-lang.discourse.group/t/fortran-2018-standard-issue/743/3 "2021-02-21T22:01:58Z")

</div>

> [@han190](#):
>
> .. are these features deprecated .?

No, it is a bug in Intel Fortran compiler - please see this thread: [community.intel.com/t5/Intel-Fortran-Compiler/Using-stand-f18-with-ISO-FORTRAN-ENV/m-p/1219046#M152295](http://community.intel.com/t5/Intel-Fortran-Compiler/Using-stand-f18-with-ISO-FORTRAN-ENV/m-p/1219046#M152295)

By the way, for Intel Fortran compiler specific issues, you may want to try Intel Fortran forum first.

---

<div class="post-metadata">

**Author:** ![Beliavsky](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@Beliavsky](https://fortran-lang.discourse.group/u/Beliavsky)\
**Post date:** [February 21, 2021, 10:07pm UTC](https://fortran-lang.discourse.group/t/fortran-2018-standard-issue/743/4 "2021-02-21T22:07:51Z")

</div>

For the code

```
use iso_fortran_env, only: compiler_version,compiler_options
implicit none
write (*,"(a,/,a)") "compiler:",trim(compiler_version())
write (*,"(/,a,/,a)") "compiler options:",trim(compiler_options())
end

```

`ifort -nologo -stand:f18 xcompiler_version.f90` on Windows 10 appears to give spurious warnings

```
xcompiler_version.f90(3): warning #7416: Fortran 2018 does not allow this intrinsic procedure. [COMPILER_VERSION]
write (*,"(a,/,a)") "compiler:",trim(compiler_version())
-------------------------------------^
xcompiler_version.f90(4): warning #7416: Fortran 2018 does not allow this intrinsic procedure. [COMPILER_OPTIONS]
write (*,"(/,a,/,a)") "compiler options:",trim(compiler_options())
-----------------------------------------------^

```

but does create an executable with output

```
compiler:
Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.1 Build 20201112_000000

compiler options:
/nologo /stand:f18
```

---

<div class="post-metadata">

**Author:** ![billlong](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@billlong](https://fortran-lang.discourse.group/u/billlong)\
**Post date:** [February 22, 2021, 4:42am UTC](https://fortran-lang.discourse.group/t/fortran-2018-standard-issue/743/5 "2021-02-22T04:42:52Z")

</div>

Note that compiler\_version() and compiler\_options() were in Fortran 2008 (and are still in 2018). This looks like a bug in the compiler.

---

<div class="post-metadata">

**Author:** ![vmagnin](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/vmagnin/32/28_2.png) [@vmagnin](https://fortran-lang.discourse.group/u/vmagnin)\
**Post date:** [March 24, 2022, 4:15pm UTC](https://fortran-lang.discourse.group/t/fortran-2018-standard-issue/743/6 "2022-03-24T16:15:54Z")

</div>

Curiously, with ifort 2021.5.0 and ifx 2022.0.0 with options `-warn all -stand f08`, I have this warning:

```auto
RAY3D_main.f90(116): warning #7416: Fortran 2008 does not allow this intrinsic procedure. [COMPILER_VERSION]
    print *, " ", compiler_version()
-------------------^

```

---

<div class="post-metadata">

**Author:** ![FortranFan](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@FortranFan](https://fortran-lang.discourse.group/u/FortranFan)\
**Post date:** [March 26, 2022, 2:04pm UTC](https://fortran-lang.discourse.group/t/fortran-2018-standard-issue/743/7 "2022-03-26T14:04:42Z")

</div>

> [@vmagnin](#):
>
> Curiously, with ifort 2021.5.0 and ifx 2022.0.0 with options `-warn all -stand f08` , I have this warning:

@vmagnin , it will be helpful to Intel Fortran users if you can report this issue at the Intel Fortran forum:

> **[Intel® Fortran Compiler](https://community.intel.com/t5/Intel-Fortran-Compiler/bd-p/fortran-compiler)**
>
> Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

---

<div class="post-metadata">

**Author:** ![vmagnin](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/vmagnin/32/28_2.png) [@vmagnin](https://fortran-lang.discourse.group/u/vmagnin)\
**Post date:** [March 29, 2022, 6:43am UTC](https://fortran-lang.discourse.group/t/fortran-2018-standard-issue/743/8 "2022-03-29T06:43:08Z")

</div>

> [@FortranFan](#):
>
> it will be helpful to Intel Fortran users if you can report this issue at the Intel Fortran forum

Done.

> **[Re: Using /stand:f18 with ISO\_FORTRAN\_ENV](https://community.intel.com/t5/Intel-Fortran-Compiler/Using-stand-f18-with-ISO-FORTRAN-ENV/m-p/1372630#M160794)**
>
> Those warnings are still present in ifort and ifx with the -stand f08 option, although those functions are part of the Fortran 2008 standard:$ ifx -stand f08 t.f90
> t.f90(4): warning #7416: Fortran 2008 does not allow this intrinsic procedure. ...

---

<div class="post-metadata">

**Author:** ![FortranFan](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@FortranFan](https://fortran-lang.discourse.group/u/FortranFan)\
**Post date:** [March 29, 2022, 1:04pm UTC](https://fortran-lang.discourse.group/t/fortran-2018-standard-issue/743/9 "2022-03-29T13:04:07Z")

</div>

> [@vmagnin](#):
>
> Done.

👍

---

<div class="post-metadata">

**Author:** ![vmagnin](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/vmagnin/32/28_2.png) [@vmagnin](https://fortran-lang.discourse.group/u/vmagnin)\
**Post date:** [March 29, 2022, 4:14pm UTC](https://fortran-lang.discourse.group/t/fortran-2018-standard-issue/743/10 "2022-03-29T16:14:43Z")

</div>

The forum answer is that it is fixed in the April version (ifx 2022.1.0).
