<?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 INTERNAL COMPILER ERROR: module/submodule with fixed-len allocatable character dummy argument in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/INTERNAL-COMPILER-ERROR-module-submodule-with-fixed-len/m-p/1365345#M160413</link>
    <description>&lt;P&gt;The following code appears to be standard-conforming but does not compile with Intel ifort 2021.5:&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;module mod
    interface unique
        module function findUnique(Array) result(unique)
            character(*), intent(in), contiguous    :: array(:)
            character(len(array))   , allocatable   :: unique(:)
        end function
    end interface
end module mod

submodule (mod) smod
contains
    module procedure findUnique
    end procedure
end submodule smod

end&lt;/LI-CODE&gt;
&lt;P&gt;The code can be readily &lt;A href="https://godbolt.org/z/r3fMbr7PW" target="_blank" rel="noopener"&gt;tested online here&lt;/A&gt; to reproduce the ICE message.&lt;/P&gt;
&lt;P&gt;Gfortran 11 can compile the same code. Note that the problem appears to be entirely due to the specification of the length-type parameter of the allocatable output. For example, the following code works just fine,&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;module mod
    interface unique
        module function findUnique(Array) result(unique)
            character(*), intent(in), contiguous    :: array(:)
            character(:)            , allocatable   :: unique(:)
        end function
    end interface
end module mod

submodule (mod) smod
contains
    module procedure findUnique
    end procedure
end submodule smod
end&lt;/LI-CODE&gt;
&lt;P&gt;Specifying the interface in both the submdule and the module also resolves the ICE, if I remember correctly. But interface-duplication is an ugly least-wanted solution for an ICE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2022 03:12:21 GMT</pubDate>
    <dc:creator>DataScientist</dc:creator>
    <dc:date>2022-03-03T03:12:21Z</dc:date>
    <item>
      <title>INTERNAL COMPILER ERROR: module/submodule with fixed-len allocatable character dummy argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/INTERNAL-COMPILER-ERROR-module-submodule-with-fixed-len/m-p/1365345#M160413</link>
      <description>&lt;P&gt;The following code appears to be standard-conforming but does not compile with Intel ifort 2021.5:&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;module mod
    interface unique
        module function findUnique(Array) result(unique)
            character(*), intent(in), contiguous    :: array(:)
            character(len(array))   , allocatable   :: unique(:)
        end function
    end interface
end module mod

submodule (mod) smod
contains
    module procedure findUnique
    end procedure
end submodule smod

end&lt;/LI-CODE&gt;
&lt;P&gt;The code can be readily &lt;A href="https://godbolt.org/z/r3fMbr7PW" target="_blank" rel="noopener"&gt;tested online here&lt;/A&gt; to reproduce the ICE message.&lt;/P&gt;
&lt;P&gt;Gfortran 11 can compile the same code. Note that the problem appears to be entirely due to the specification of the length-type parameter of the allocatable output. For example, the following code works just fine,&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;module mod
    interface unique
        module function findUnique(Array) result(unique)
            character(*), intent(in), contiguous    :: array(:)
            character(:)            , allocatable   :: unique(:)
        end function
    end interface
end module mod

submodule (mod) smod
contains
    module procedure findUnique
    end procedure
end submodule smod
end&lt;/LI-CODE&gt;
&lt;P&gt;Specifying the interface in both the submdule and the module also resolves the ICE, if I remember correctly. But interface-duplication is an ugly least-wanted solution for an ICE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 03:12:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/INTERNAL-COMPILER-ERROR-module-submodule-with-fixed-len/m-p/1365345#M160413</guid>
      <dc:creator>DataScientist</dc:creator>
      <dc:date>2022-03-03T03:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: INTERNAL COMPILER ERROR: module/submodule with fixed-len allocatable character dummy argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/INTERNAL-COMPILER-ERROR-module-submodule-with-fixed-len/m-p/1365573#M160424</link>
      <description>&lt;P&gt;I have a Fedora 35 system with gfortran.&amp;nbsp; Yes, looks like a bug.&amp;nbsp; I'll write it up.&amp;nbsp; Thank you for this simple bug reproducer!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 18:02:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/INTERNAL-COMPILER-ERROR-module-submodule-with-fixed-len/m-p/1365573#M160424</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2022-03-03T18:02:28Z</dc:date>
    </item>
    <item>
      <title>Re:INTERNAL COMPILER ERROR: module/submodule with fixed-len allocatable character dummy argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/INTERNAL-COMPILER-ERROR-module-submodule-with-fixed-len/m-p/1365593#M160425</link>
      <description>&lt;P&gt;The stack trace on this is almost identical to your previously reported issue &lt;A href="https://community.intel.com/t5/Intel-Fortran-Compiler/INTERNAL-COMPILER-ERROR-allocatable-and-contiguous-arguments-in/td-p/1354727" target="_blank"&gt;https://community.intel.com/t5/Intel-Fortran-Compiler/INTERNAL-COMPILER-ERROR-allocatable-and-contiguous-arguments-in/td-p/1354727&lt;/A&gt; so I have added it to the existing bug report CMPLRIL0-34555.  We'll make sure both your examples work when this bug is addressed.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Mar 2022 19:20:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/INTERNAL-COMPILER-ERROR-module-submodule-with-fixed-len/m-p/1365593#M160425</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2022-03-03T19:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Re:INTERNAL COMPILER ERROR: module/submodule with fixed-len allocatable character dummy argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/INTERNAL-COMPILER-ERROR-module-submodule-with-fixed-len/m-p/1365627#M160426</link>
      <description>&lt;P&gt;I was wrong, these cases are triggering 2 bugs in the front end.&amp;nbsp; the first, your first issue, the developer has identified and has a pending fix for that one.&amp;nbsp; This new one is ever so slightly different.&amp;nbsp; Very close code paths but different.&amp;nbsp; She's working on this 2nd case now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We did miss code freeze for the next update release for both of these.&amp;nbsp; So the Update that releases next, in the next month or so, will not have the fixes.&amp;nbsp; I will keep you posted on when to expect two fixes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ron&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 21:53:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/INTERNAL-COMPILER-ERROR-module-submodule-with-fixed-len/m-p/1365627#M160426</guid>
      <dc:creator>Ron_Green</dc:creator>
      <dc:date>2022-03-03T21:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: INTERNAL COMPILER ERROR: module/submodule with fixed-len allocatable character dummy argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/INTERNAL-COMPILER-ERROR-module-submodule-with-fixed-len/m-p/1365629#M160427</link>
      <description>&lt;P&gt;Fantastic, Thank you very much for the rapid responses and updates.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 21:58:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/INTERNAL-COMPILER-ERROR-module-submodule-with-fixed-len/m-p/1365629#M160427</guid>
      <dc:creator>DataScientist</dc:creator>
      <dc:date>2022-03-03T21:58:54Z</dc:date>
    </item>
  </channel>
</rss>

