<?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:Bug Report ICE: &amp;quot;catastrophic error&amp;quot; with ieee_arithmetic module's ieee_value (ifx 2024.2) in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-Report-ICE-quot-catastrophic-error-quot-with-ieee-arithmetic/m-p/1611283#M172815</link>
    <description>&lt;P&gt;I reproduced the issue internally. Thank you for the report. This case has been escalated to compiler engineering. &lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 01 Jul 2024 20:54:08 GMT</pubDate>
    <dc:creator>Devorah_H_Intel</dc:creator>
    <dc:date>2024-07-01T20:54:08Z</dc:date>
    <item>
      <title>Bug Report ICE: "catastrophic error" with ieee_arithmetic module's ieee_value (ifx 2024.2)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-Report-ICE-quot-catastrophic-error-quot-with-ieee-arithmetic/m-p/1610780#M172791</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Compiler&lt;/STRONG&gt;:&amp;nbsp;ifx (IFX) 2024.2.0 20240602 (ifx --version)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OS&lt;/STRONG&gt;:&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;Rocky Linux 8.9 (Green Obsidian)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I encountered an interesting ICE when setting double precision complex number arrays to "NaN". I don't know if this is a misuse of the ieee_arithmetic's ieee_value(), or if it is standard-compliant, but here it is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;! file: test.f90
program main
    use, intrinsic :: ieee_arithmetic, only: ieee_value, ieee_quiet_nan
    implicit none
    complex(8), allocatable :: x(:)

    allocate(x(3))
    x = cmplx(ieee_value(x%re,ieee_quiet_nan), ieee_value(x%im,ieee_quiet_nan), kind=8)

    print *, x%im
end program&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Compiling on the command line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;ifx test.f90&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this compiler error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="none"&gt;test.f90(8): internal error: Please visit 'http://www.intel.com/software/products/support' for assistance.
    x = cmplx(ieee_value(x%re,ieee_quiet_nan), ieee_value(x%im,ieee_quiet_nan), kind=8)
^
test.f90(8): catastrophic error: Internal Compiler Error: Ref module: ffe_aexpr.c
compilation aborted for test.f90 (code 1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Workaround&lt;/H3&gt;&lt;P&gt;&amp;nbsp;I found a workaround which is to only pass a single value of x for the first argument of ieee_value():&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;! file: workaround.f90
program main
    use, intrinsic :: ieee_arithmetic, only: ieee_value, ieee_quiet_nan
    implicit none
    complex(8), allocatable :: x(:)

    allocate(x(3))
    x = cmplx(ieee_value(x(1)%re,ieee_quiet_nan), ieee_value(x(1)%im,ieee_quiet_nan), kind=8)

    print *, x%im
end program&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This seems like the right thing to do. I wanted to share this solution and give the compiler team code to reproduce the error. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 18:51:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-Report-ICE-quot-catastrophic-error-quot-with-ieee-arithmetic/m-p/1610780#M172791</guid>
      <dc:creator>jeffhole</dc:creator>
      <dc:date>2024-06-28T18:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Bug Report ICE: "catastrophic error" with ieee_arithmetic module's ieee_value (ifx 202</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-Report-ICE-quot-catastrophic-error-quot-with-ieee-arithmetic/m-p/1610977#M172811</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/365805"&gt;@jeffhole&lt;/a&gt;'s test.f90 program compiles and runs correctly with ifort. If one changes the kind 8 to either 4 or 16 it still crashes with ifx and runs correctly with ifort.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jun 2024 22:02:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-Report-ICE-quot-catastrophic-error-quot-with-ieee-arithmetic/m-p/1610977#M172811</guid>
      <dc:creator>JFH</dc:creator>
      <dc:date>2024-06-30T22:02:43Z</dc:date>
    </item>
    <item>
      <title>Re:Bug Report ICE: "catastrophic error" with ieee_arithmetic module's ieee_value (ifx 2024.2)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-Report-ICE-quot-catastrophic-error-quot-with-ieee-arithmetic/m-p/1611283#M172815</link>
      <description>&lt;P&gt;I reproduced the issue internally. Thank you for the report. This case has been escalated to compiler engineering. &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Jul 2024 20:54:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-Report-ICE-quot-catastrophic-error-quot-with-ieee-arithmetic/m-p/1611283#M172815</guid>
      <dc:creator>Devorah_H_Intel</dc:creator>
      <dc:date>2024-07-01T20:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Bug Report ICE: "catastrophic error" with ieee_arithmetic module's ieee_value (ifx 202</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-Report-ICE-quot-catastrophic-error-quot-with-ieee-arithmetic/m-p/1611290#M172816</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/329065"&gt;@JFH&lt;/a&gt;&amp;nbsp;for checking this against ifort. Good thing to know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You're welcome,&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/41996"&gt;@Devorah_H_Intel&lt;/a&gt;! Glad to help!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 21:10:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-Report-ICE-quot-catastrophic-error-quot-with-ieee-arithmetic/m-p/1611290#M172816</guid>
      <dc:creator>jeffhole</dc:creator>
      <dc:date>2024-07-01T21:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Bug Report ICE: "catastrophic error" with ieee_arithmetic module's ieee_value (ifx 202</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-Report-ICE-quot-catastrophic-error-quot-with-ieee-arithmetic/m-p/1700868#M176194</link>
      <description>&lt;P&gt;I tested this under the latest release 2025.2.0 and the issue is still showing. I looked at the support ticket opened on my behalf at Intel Support and it's status is "closed: final". Is there a status update on this?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;P.S. The support ticket is #06274899, created&amp;nbsp;2024/07/01 13:09 and last updated&amp;nbsp;2024/12/19 00:48.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 12:29:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bug-Report-ICE-quot-catastrophic-error-quot-with-ieee-arithmetic/m-p/1700868#M176194</guid>
      <dc:creator>jeffhole</dc:creator>
      <dc:date>2025-07-01T12:29:06Z</dc:date>
    </item>
  </channel>
</rss>

