<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: INTEGER PARAMETER initialized with BOZ literal retains its BOZ literal status in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1710297#M176677</link>
    <description>&lt;P&gt;Thanks for the notification,&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/52256"&gt;@Ron_Green&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;This is a huge step in my attempt to migrate from ifort to ifx ---since I have like a million BOZ-literals that were never wrapped in INT(...) (I just suppresed the specific ifort warning).&lt;/P&gt;</description>
    <pubDate>Mon, 18 Aug 2025 18:37:34 GMT</pubDate>
    <dc:creator>jwmwalrus</dc:creator>
    <dc:date>2025-08-18T18:37:34Z</dc:date>
    <item>
      <title>INTEGER PARAMETER initialized with BOZ literal retains its BOZ literal status</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1644574#M174298</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;The latest IFX seems to allow initialization of INTEGER PARAMETERs with BOZ literals, but further usage does not interpret such parameters as INTEGERs.&lt;/P&gt;&lt;P&gt;The following code&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;use ISO_C_BINDING
implicit none
integer(C_INT), parameter :: IN_CLOSE_WRITE = z'00000008'                       !! Writtable file was closed
integer(C_INT), parameter :: IN_CLOSE_NOWRITE = z'00000010'                     !! Unwrittable file closed
integer(C_INT), parameter :: IN_CLOSE = ior(IN_CLOSE_WRITE, IN_CLOSE_NOWRITE)   !! Close
end&lt;/LI-CODE&gt;&lt;P&gt;Throws this error&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;$ ifx -V -stand f2023 -standard-semantics /media/vmshare/ior_boz.f90 
Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 2025.0.1 Build 20241113
Copyright (C) 1985-2024 Intel Corporation. All rights reserved.

 Intel(R) Fortran 25.0-1205.1
/media/vmshare/ior_boz.f90(5): error #8336: The arguments I and J must not both be boz-literal-constant.   [IOR]
integer(C_INT), parameter :: IN_CLOSE = ior(IN_CLOSE_WRITE, IN_CLOSE_NOWRITE)   !! Close
----------------------------------------^
compilation aborted for /media/vmshare/ior_boz.f90 (code 1)
debian@d&lt;/LI-CODE&gt;&lt;P&gt;As I understand it, a BOZ literal is untyped, until assigned to an object with a specific type.&lt;/P&gt;&lt;P&gt;So my questions: is the code standard conforming but the feature is not ready yet in IFX?&amp;nbsp; Or are INTEGER PARAMETERs supposed to propagate its "initialized-through-boz-literal" status?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 20:26:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1644574#M174298</guid>
      <dc:creator>jwmwalrus</dc:creator>
      <dc:date>2024-11-20T20:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: INTEGER PARAMETER initialized with BOZ literal retains its BOZ literal status</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1644609#M174300</link>
      <description>&lt;P&gt;The code is conforming to F2023, and BOZ status does not "propagate". You've declared the entities as INTEGER, so that's what they are. Intel Fortran has allowed using a BOZ constant to set the value of a PARAMETER for many, many years (as did DEC/Compaq Fortran before it.) This error message is puzzling to me.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 00:15:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1644609#M174300</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2024-11-21T00:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: INTEGER PARAMETER initialized with BOZ literal retains its BOZ literal status</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1644641#M174304</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/5442"&gt;@Steve_Lionel&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Intel Fortran has allowed using a BOZ constant to set the value of a PARAMETER for many, many years...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, I meant to say, "...without a warning when the -stand flag is given", which is the behavior I get with ifort.&lt;/P&gt;&lt;P&gt;Thanks for confirming the code is standard conforming, and that the error is an odd one.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 02:35:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1644641#M174304</guid>
      <dc:creator>jwmwalrus</dc:creator>
      <dc:date>2024-11-21T02:35:12Z</dc:date>
    </item>
    <item>
      <title>Re:INTEGER PARAMETER initialized with BOZ literal retains its BOZ literal status</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1645789#M174373</link>
      <description>&lt;P&gt;A bug report has been opened. We will fix it in the future product.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Nov 2024 07:20:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1645789#M174373</guid>
      <dc:creator>Xiaoping_D_Intel</dc:creator>
      <dc:date>2024-11-26T07:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: INTEGER PARAMETER initialized with BOZ literal retains its BOZ literal status</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1710295#M176676</link>
      <description>&lt;P&gt;This issue was fixed in version 2025.2.0&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 18:16:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1710295#M176676</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2025-08-18T18:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: INTEGER PARAMETER initialized with BOZ literal retains its BOZ literal status</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1710297#M176677</link>
      <description>&lt;P&gt;Thanks for the notification,&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/52256"&gt;@Ron_Green&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;This is a huge step in my attempt to migrate from ifort to ifx ---since I have like a million BOZ-literals that were never wrapped in INT(...) (I just suppresed the specific ifort warning).&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 18:37:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1710297#M176677</guid>
      <dc:creator>jwmwalrus</dc:creator>
      <dc:date>2025-08-18T18:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: INTEGER PARAMETER initialized with BOZ literal retains its BOZ literal status</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1745491#M178730</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I have a variation of this one, using enums:&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;use ISO_C_BINDING
implicit none

enum, bind(C)
    enumerator :: IN_CLOSE_WRITE = z'00000008'                       !! Writtable file was closed
    enumerator :: IN_CLOSE_NOWRITE = z'00000010'                     !! Unwrittable file closed
    enumerator :: IN_CLOSE = ior(IN_CLOSE_WRITE, IN_CLOSE_NOWRITE)   !! Close
end enum

print*,IN_CLOSE_WRITE
end&lt;/LI-CODE&gt;&lt;P&gt;The latest ifx throws&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;$ ifx -V boz-enums.f90
Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 2025.3.3 Build 20260319
Copyright (C) 1985-2026 Intel Corporation. All rights reserved.

 Intel(R) Fortran 25.0-1601.5
boz-enums.f90(7): error #8336: The arguments I and J must not both be boz-literal-constant.   [IOR]
    enumerator :: IN_CLOSE = ior(IN_CLOSE_WRITE, IN_CLOSE_NOWRITE)   !! Close
-----------------------------^
compilation aborted for boz-enums.f90 (code 1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, my questions once again: Since an enumerator doesn't explicitly state integer(C_INT) as type, is is the compiler right at complaining here? Is the code standard-conforming?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2026 09:09:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1745491#M178730</guid>
      <dc:creator>jwmwalrus</dc:creator>
      <dc:date>2026-04-23T09:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: INTEGER PARAMETER initialized with BOZ literal retains its BOZ literal status</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1745947#M178754</link>
      <description>&lt;P&gt;The code is not standard conforming as the standard does not allow a BOZ literal as an interoperable enumerator value. To make this standard conforming, place the BOZ literals inside INT().&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2026 18:37:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1745947#M178754</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2026-04-27T18:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: INTEGER PARAMETER initialized with BOZ literal retains its BOZ literal status</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1745995#M178757</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/5442"&gt;@Steve_Lionel&lt;/a&gt;&amp;nbsp;, thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, since the code is not standard conforming, it's actually a regression in regards to ifort's behavior (which is able to compile the code without issue).&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;$ ifort -V -diag-disable=10448 -standard-semantics -stand f23 boz-enums.f90 &amp;amp;&amp;amp; ./a.out 
Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.13.1 Build 20240703_000000
Copyright (C) 1985-2024 Intel Corporation.  All rights reserved.

 Intel(R) Fortran 2021.13.1-1693
GNU ld (GNU Binutils for Debian) 2.44
 8&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;ifort doesn't even throw a warning, though ---as it does for non-int-wrapped BOZ literals anywhere else.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2026 01:25:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1745995#M178757</guid>
      <dc:creator>jwmwalrus</dc:creator>
      <dc:date>2026-04-28T01:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: INTEGER PARAMETER initialized with BOZ literal retains its BOZ literal status</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1746012#M178758</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/5442"&gt;@Steve_Lionel&lt;/a&gt;&amp;nbsp;I see that the standards committee has ongoing work related to C23's explicit underlying type (i.e., a KIND selector) for interoperable enums. Would that work (if it makes it to F2028) lift the no-BOZ restriction? I mean&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;enum(KIND = C_LONG), bind(C)
    enumerator :: IN_CLOSE_WRITE = z'00000008'                       !! Writtable file was closed
    enumerator :: IN_CLOSE_NOWRITE = z'00000010'                     !! Unwrittable file closed
    enumerator :: IN_CLOSE = ior(IN_CLOSE_WRITE, IN_CLOSE_NOWRITE)   !! Close
end enum&lt;/LI-CODE&gt;&lt;P&gt;would effectively be the same as `integer(C_LONG), parameter ...`, wouldn't it?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2026 03:44:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1746012#M178758</guid>
      <dc:creator>jwmwalrus</dc:creator>
      <dc:date>2026-04-28T03:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: INTEGER PARAMETER initialized with BOZ literal retains its BOZ literal status</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1746071#M178761</link>
      <description>&lt;P&gt;I was mistaken in saying that your code was nonstandard - the standard allows a BOZ as "the&amp;nbsp;initialization for a named constant or variable of type integer or real". So, the compiler introduced a bug here. The BOZ is implicitly converted to the type of the named constant and should not carry forward its origin as a BOZ. My apologies for misrepresenting things earlier.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2026 14:17:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1746071#M178761</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2026-04-28T14:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: INTEGER PARAMETER initialized with BOZ literal retains its BOZ literal status</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1746180#M178768</link>
      <description>&lt;P&gt;Thanks for the reply and verification.&lt;/P&gt;&lt;P&gt;So, if the code is standard-conforming, the issue is the same as before ---i.e., they fixed it for PARAMETER, but not for ENUMERATOR.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2026 08:06:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1746180#M178768</guid>
      <dc:creator>jwmwalrus</dc:creator>
      <dc:date>2026-04-29T08:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: INTEGER PARAMETER initialized with BOZ literal retains its BOZ literal status</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1746296#M178770</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/296168"&gt;@jwmwalrus&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;The latest ifx throws&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;LI-CODE lang="bash"&gt;$ ifx -V boz-enums.f90
Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 2025.3.3 Build 20260319
Copyright (C) 1985-2026 Intel Corporation. All rights reserved.

 Intel(R) Fortran 25.0-1601.5
boz-enums.f90(7): error #8336: The arguments I and J must not both be boz-literal-constant.   [IOR]
    enumerator :: IN_CLOSE = ior(IN_CLOSE_WRITE, IN_CLOSE_NOWRITE)   !! Close
-----------------------------^
compilation aborted for boz-enums.f90 (code 1)&lt;/LI-CODE&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ior.png" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/72400iFACFDD01B97E9D0C/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="ior.png" alt="ior.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/41896"&gt;@Igor_V_Intel&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/41891"&gt;@Xiaoping_D_Intel&lt;/a&gt;&amp;nbsp; /&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/238063"&gt;@Shiquan_Su&lt;/a&gt;&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It appears IFX treats IN_CLOSE_WRITE / IN_CLOSE_NOWRITE as "boz-literal-constant" in OP's code rather than as enumerators viz. named integer constants.&amp;nbsp; May you please discuss with Intel Fortran team and follow up with an incident report as appropriate?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2026 01:42:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1746296#M178770</guid>
      <dc:creator>FortranFan</dc:creator>
      <dc:date>2026-04-30T01:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: INTEGER PARAMETER initialized with BOZ literal retains its BOZ literal status</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1746377#M178774</link>
      <description>&lt;P&gt;Thank you for reporting it. Yes, it is a bug and I escalated it (CMPLRLLVM-75261)&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2026 16:15:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/INTEGER-PARAMETER-initialized-with-BOZ-literal-retains-its-BOZ/m-p/1746377#M178774</guid>
      <dc:creator>Igor_V_Intel</dc:creator>
      <dc:date>2026-04-30T16:15:44Z</dc:date>
    </item>
  </channel>
</rss>

