<?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 IFX 2023.0.0 runtime error on Windows - allocatable array or pointer is not allocated in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1456280#M165072</link>
    <description>&lt;P&gt;Greetings,&lt;/P&gt;
&lt;P&gt;Please consider the following code which generates a runtime error in IFX 2023.0.0 but not in Classic.&amp;nbsp; Can this be fixed for the next point release?&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;! Compiles and runs with with Classic:
! Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on
! Intel(R) 64, Version 2021.8.0 Build 20221119_000000
!
! Compiles but generates run time errors with IFX:
! Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version
! 2023.0.0 Build 20221201
! forrtl: severe (153): allocatable array or pointer is not allocated
!***********************************************************************
    module mymod_m
    implicit none

    type mytype
        character(:), allocatable :: links
    end type mytype

    type(mytype), target :: sd

    contains
!*******************************************************************************
    subroutine update(fdir)
    character(len=*), intent(in) :: fdir

    print *, "fdir in update: "//trim(fdir)
    sd%links = fdir

    end subroutine update
!*******************************************************************************
    function fixdir() result(fdir)
    character(:), allocatable :: fdir

    fdir = 'stuff'
    call update(fdir)
    print *, "fdir in fixdir: ", fdir

    end function fixdir

    end module mymod_m
!*******************************************************************************
    program allocate_error
    use mymod_m
    implicit none

    sd%links = fixdir()

    end program allocate_error&lt;/LI-CODE&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Dave&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2023 20:33:46 GMT</pubDate>
    <dc:creator>fortrandave</dc:creator>
    <dc:date>2023-02-15T20:33:46Z</dc:date>
    <item>
      <title>IFX 2023.0.0 runtime error on Windows - allocatable array or pointer is not allocated</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1456280#M165072</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;
&lt;P&gt;Please consider the following code which generates a runtime error in IFX 2023.0.0 but not in Classic.&amp;nbsp; Can this be fixed for the next point release?&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;! Compiles and runs with with Classic:
! Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on
! Intel(R) 64, Version 2021.8.0 Build 20221119_000000
!
! Compiles but generates run time errors with IFX:
! Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version
! 2023.0.0 Build 20221201
! forrtl: severe (153): allocatable array or pointer is not allocated
!***********************************************************************
    module mymod_m
    implicit none

    type mytype
        character(:), allocatable :: links
    end type mytype

    type(mytype), target :: sd

    contains
!*******************************************************************************
    subroutine update(fdir)
    character(len=*), intent(in) :: fdir

    print *, "fdir in update: "//trim(fdir)
    sd%links = fdir

    end subroutine update
!*******************************************************************************
    function fixdir() result(fdir)
    character(:), allocatable :: fdir

    fdir = 'stuff'
    call update(fdir)
    print *, "fdir in fixdir: ", fdir

    end function fixdir

    end module mymod_m
!*******************************************************************************
    program allocate_error
    use mymod_m
    implicit none

    sd%links = fixdir()

    end program allocate_error&lt;/LI-CODE&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Dave&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 20:33:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1456280#M165072</guid>
      <dc:creator>fortrandave</dc:creator>
      <dc:date>2023-02-15T20:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: IFX 2023.0.0 runtime error on Windows - allocatable array or pointer is not allocated</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1456322#M165077</link>
      <description>&lt;P&gt;it runs and you get the correct answer in ifx, but for some strange reason it throws the error on exiting line 44 it appears.&amp;nbsp; Watch shows the correct value on entry.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 23:01:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1456322#M165077</guid>
      <dc:creator>JohnNichols</dc:creator>
      <dc:date>2023-02-15T23:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: IFX 2023.0.0 runtime error on Windows - allocatable array or pointer is not allocated</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1456332#M165080</link>
      <description>&lt;P&gt;It certainly would not win prizes for good coding practice but I would be interested in some comment of the legality. I would expect the fixdir function on the RHS to fully complete before&amp;nbsp;&lt;SPAN&gt;sd&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;%&lt;/SPAN&gt;&lt;SPAN&gt;links updates on the LHS but fixdir changes&amp;nbsp;sd&lt;SPAN class="token operator"&gt;%&lt;/SPAN&gt;links during it execution so sd%links gets updated twice.....&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 23:27:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1456332#M165080</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2023-02-15T23:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: IFX 2023.0.0 runtime error on Windows - allocatable array or pointer is not allocated</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1457044#M165143</link>
      <description>&lt;P&gt;It's good to see so many people using ifx! Thanks for reporting this issue.&lt;/P&gt;
&lt;P&gt;It fails on Linux at line 44, too.&lt;/P&gt;
&lt;P&gt;I filed a bug, CMPLRLLVM-45010. I'll let you know about the fix.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 21:11:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1457044#M165143</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2023-02-17T21:11:07Z</dc:date>
    </item>
    <item>
      <title>Re:IFX 2023.0.0 runtime error on Windows - allocatable array or pointer is not allocated</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1457913#M165184</link>
      <description>&lt;P&gt;I checked with the resident Intel Fortran standards expert. He says it is legal Fortran.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Feb 2023 15:46:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1457913#M165184</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2023-02-21T15:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: IFX 2023.0.0 runtime error on Windows - allocatable array or pointer is not allocated</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1458286#M165228</link>
      <description>&lt;P&gt;You're welcome!&amp;nbsp; Thanks for accepting this as a bug.&amp;nbsp; I'm planning on looking at ifx releases as they come out.&amp;nbsp; There's been some great progress in the last year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll follow this thread and watch for a resolution.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 16:43:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1458286#M165228</guid>
      <dc:creator>fortrandave</dc:creator>
      <dc:date>2023-02-22T16:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Re:IFX 2023.0.0 runtime error on Windows - allocatable array or pointer is not allocated</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1458292#M165231</link>
      <description>&lt;P&gt;Thanks for checking on this.&amp;nbsp; I thought it was legal, though I agree with&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/66560"&gt;@andrew_4619&lt;/a&gt;&amp;nbsp;that it's not the best coding practice.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 16:46:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1458292#M165231</guid>
      <dc:creator>fortrandave</dc:creator>
      <dc:date>2023-02-22T16:46:07Z</dc:date>
    </item>
    <item>
      <title>Re:IFX 2023.0.0 runtime error on Windows - allocatable array or pointer is not allocated</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1546266#M169335</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/110728"&gt;@fortrandave&lt;/a&gt;, the runtime error is gone with ifx 2024.0.0 that was released this week. Another one fixed for you!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Nov 2023 22:11:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1546266#M169335</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2023-11-21T22:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Re:IFX 2023.0.0 runtime error on Windows - allocatable array or pointer is not allocated</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1546491#M169347</link>
      <description>&lt;P&gt;Thanks again!&amp;nbsp; I'll verify on my side once I get my hands on 2024.0.&amp;nbsp; Corporate environments take a bit longer to process things.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 15:36:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1546491#M169347</guid>
      <dc:creator>fortrandave</dc:creator>
      <dc:date>2023-11-22T15:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Re:IFX 2023.0.0 runtime error on Windows - allocatable array or pointer is not allocated</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1546508#M169348</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="who-invented-the-chariot-min-778808840.jpg" style="width: 696px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/48373iE2B0AD90EBEA463C/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="who-invented-the-chariot-min-778808840.jpg" alt="who-invented-the-chariot-min-778808840.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Corporates latest idea for transport, the emissions plots are spectacular, the company will be fully green.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 16:11:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1546508#M169348</guid>
      <dc:creator>JohnNichols</dc:creator>
      <dc:date>2023-11-22T16:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Re:IFX 2023.0.0 runtime error on Windows - allocatable array or pointer is not allocated</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1546565#M169352</link>
      <description>&lt;P&gt;No kidding.&amp;nbsp; Thanks for a good laugh!&amp;nbsp; I'm hoping to have it in hand not too long after our Thanksgiving break.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 18:48:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IFX-2023-0-0-runtime-error-on-Windows-allocatable-array-or/m-p/1546565#M169352</guid>
      <dc:creator>fortrandave</dc:creator>
      <dc:date>2023-11-22T18:48:19Z</dc:date>
    </item>
  </channel>
</rss>

