<?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: ICE with assumed-rank class(*), dimension(..) argument in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ICE-with-assumed-rank-class-dimension-argument/m-p/1238029#M153331</link>
    <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/78541"&gt;@Martin1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As you would know, an ICE is always a compiler bug.&amp;nbsp; Please submit this as support request at Intel OSC if you're able to.&amp;nbsp; &lt;A href="https://supporttickets.intel.com/?lang=en-US" target="_blank"&gt;https://supporttickets.intel.com/?lang=en-US&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Otherwise, you'll have to wait for Intel staff to pick it up from here.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Dec 2020 21:27:40 GMT</pubDate>
    <dc:creator>FortranFan</dc:creator>
    <dc:date>2020-12-16T21:27:40Z</dc:date>
    <item>
      <title>ICE with assumed-rank class(*), dimension(..) argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ICE-with-assumed-rank-class-dimension-argument/m-p/1237986#M153328</link>
      <description>&lt;P&gt;&lt;SPAN class="value case-description" style="word-wrap: break-word;"&gt;The ifort compiler (&lt;SPAN&gt;&lt;SPAN class="feeditem-body wordwrap-bubbles"&gt; ifort -V output is&lt;BR /&gt;Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.1 Build 20201112_000000&lt;/SPAN&gt;&lt;/SPAN&gt; on Linux) fails with an ICE on the attached small program. It seems to be that it fails on the "class(*), dimension(..), optional" argument with assumed-rank. If the optional is removed, it still crashs. But if class(*) is replaced by an intrinsic type like integer or logical, it compiles (all with appropriates adjustments to the rest of the code of course).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 19:04:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ICE-with-assumed-rank-class-dimension-argument/m-p/1237986#M153328</guid>
      <dc:creator>Martin1</dc:creator>
      <dc:date>2020-12-16T19:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: ICE with assumed-rank class(*), dimension(..) argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ICE-with-assumed-rank-class-dimension-argument/m-p/1238029#M153331</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/78541"&gt;@Martin1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As you would know, an ICE is always a compiler bug.&amp;nbsp; Please submit this as support request at Intel OSC if you're able to.&amp;nbsp; &lt;A href="https://supporttickets.intel.com/?lang=en-US" target="_blank"&gt;https://supporttickets.intel.com/?lang=en-US&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Otherwise, you'll have to wait for Intel staff to pick it up from here.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 21:27:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ICE-with-assumed-rank-class-dimension-argument/m-p/1238029#M153331</guid>
      <dc:creator>FortranFan</dc:creator>
      <dc:date>2020-12-16T21:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: ICE with assumed-rank class(*), dimension(..) argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ICE-with-assumed-rank-class-dimension-argument/m-p/1238032#M153332</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/78541"&gt;@Martin1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It can take a while for ICEs to get resolved, as you may know.&lt;/P&gt;
&lt;P&gt;In the meantime, a &lt;STRONG&gt;workaround&lt;/STRONG&gt; you can employ in your code - i.e., if you're interested - is to use the ASSUMED TYPE - i.e, TYPE(*) - facility instead of unlimited polymorphic type:&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;..
function cssel(x) result(s)
   character(len=:), allocatable :: s
   type(*), dimension(..), optional, intent(in) :: x
   if (present(x)) then
..&lt;/LI-CODE&gt;
&lt;P&gt;By the way, I personally think assumed type is better suited for the simple case you show.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 21:35:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ICE-with-assumed-rank-class-dimension-argument/m-p/1238032#M153332</guid>
      <dc:creator>FortranFan</dc:creator>
      <dc:date>2020-12-16T21:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: ICE with assumed-rank class(*), dimension(..) argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ICE-with-assumed-rank-class-dimension-argument/m-p/1238253#M153347</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/92920"&gt;@FortranFan&lt;/a&gt;&amp;nbsp; schrieb:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/78541"&gt;@Martin1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It can take a while for ICEs to get resolved, as you may know.&lt;/P&gt;
&lt;P&gt;In the meantime, a &lt;STRONG&gt;workaround&lt;/STRONG&gt; you can employ in your code - i.e., if you're interested - is to use the ASSUMED TYPE - i.e, TYPE(*) - facility instead of unlimited polymorphic type:&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;..
function cssel(x) result(s)
   character(len=:), allocatable :: s
   type(*), dimension(..), optional, intent(in) :: x
   if (present(x)) then
..&lt;/LI-CODE&gt;
&lt;P&gt;By the way, I personally think assumed type is better suited for the simple case you show.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Thanks for pointing out type(*), I had forgotten about this addition to fortran. However, this is only a much boiled down variant of the original code (a pretty printing function for debug purposes: throw any small number of variables of any intrinsic and some other basic data types at it and it tries to produce debug output much better readable than a simple print * and no need to juggle with format specifiers), where I really want to select the type and rank of the argument.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 09:36:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ICE-with-assumed-rank-class-dimension-argument/m-p/1238253#M153347</guid>
      <dc:creator>Martin1</dc:creator>
      <dc:date>2020-12-17T09:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: ICE with assumed-rank class(*), dimension(..) argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ICE-with-assumed-rank-class-dimension-argument/m-p/1238255#M153348</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/92920"&gt;@FortranFan&lt;/a&gt;&amp;nbsp; schrieb:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/78541"&gt;@Martin1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As you would know, an ICE is always a compiler bug.&amp;nbsp; Please submit this as support request at Intel OSC if you're able to.&amp;nbsp; &lt;A href="https://supporttickets.intel.com/?lang=en-US" target="_blank" rel="noopener"&gt;https://supporttickets.intel.com/?lang=en-US&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Otherwise, you'll have to wait for Intel staff to pick it up from here.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;For those without support contract, the forum is the new bug tracker, as you might already have read.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 09:42:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ICE-with-assumed-rank-class-dimension-argument/m-p/1238255#M153348</guid>
      <dc:creator>Martin1</dc:creator>
      <dc:date>2020-12-17T09:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: ICE with assumed-rank class(*), dimension(..) argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ICE-with-assumed-rank-class-dimension-argument/m-p/1238257#M153349</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/92920"&gt;@FortranFan&lt;/a&gt;&amp;nbsp; schrieb:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/78541"&gt;@Martin1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It can take a while for ICEs to get resolved, as you may know.&lt;/P&gt;
&lt;P&gt;In the meantime, a &lt;STRONG&gt;workaround&lt;/STRONG&gt; you can employ in your code - i.e., if you're interested - is to use the ASSUMED TYPE - i.e, TYPE(*) - facility instead of unlimited polymorphic type:&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;..
function cssel(x) result(s)
   character(len=:), allocatable :: s
   type(*), dimension(..), optional, intent(in) :: x
   if (present(x)) then
..&lt;/LI-CODE&gt;
&lt;P&gt;By the way, I personally think assumed type is better suited for the simple case you show.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Actually my "work-around" from the days where there were no assumed-rank arrays in sight was to use derived-types vector and matrix with a 'class(*), dimension(:), allocatable' and 'class(*), dimension(:,:), allocatable' components, respectively. But assumed-rank arguments save a bit of typing (no vector and matrix constructors).&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 09:46:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ICE-with-assumed-rank-class-dimension-argument/m-p/1238257#M153349</guid>
      <dc:creator>Martin1</dc:creator>
      <dc:date>2020-12-17T09:46:04Z</dc:date>
    </item>
    <item>
      <title>Re:ICE with assumed-rank class(*), dimension(..) argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ICE-with-assumed-rank-class-dimension-argument/m-p/1238459#M153371</link>
      <description>&lt;P&gt;I filed a bug on your behalf on this ICE.&amp;nbsp;The bug ID is&amp;nbsp;CMPLRIL0-33513.&amp;nbsp;I'll keep this thread posted on its progress to a fix.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Dec 2020 21:09:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ICE-with-assumed-rank-class-dimension-argument/m-p/1238459#M153371</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2020-12-17T21:09:28Z</dc:date>
    </item>
    <item>
      <title>Re:ICE with assumed-rank class(*), dimension(..) argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ICE-with-assumed-rank-class-dimension-argument/m-p/1386665#M161484</link>
      <description>&lt;P&gt;That ICE you reported is fixed in ifort 2021.6.0. It's included with oneAPI HPC Toolkit 2022.2 that was recently released.&lt;/P&gt;&lt;P&gt;Give it a try!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 May 2022 18:36:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ICE-with-assumed-rank-class-dimension-argument/m-p/1386665#M161484</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2022-05-23T18:36:51Z</dc:date>
    </item>
  </channel>
</rss>

