<?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:Failure to simplify some array constructors with SIZE intrinsic in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Failure-to-simplify-some-array-constructors-with-SIZE-intrinsic/m-p/1546198#M169316</link>
    <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/157087"&gt;@Harald1&lt;/a&gt;, no more faulty error messages with ifx or ifort with the releases that were published this week. Please check them out!&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 21 Nov 2023 19:35:02 GMT</pubDate>
    <dc:creator>Barbara_P_Intel</dc:creator>
    <dc:date>2023-11-21T19:35:02Z</dc:date>
    <item>
      <title>Failure to simplify some array constructors with SIZE intrinsic</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Failure-to-simplify-some-array-constructors-with-SIZE-intrinsic/m-p/1488581#M166450</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;the following code may be using SIZE in a weird way to compute the shape and size of an array but should be valid Fortran:&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;program p
  implicit none
  integer :: k
  integer, parameter :: x(2,3) = 1
  integer, parameter :: s(*) = [shape(x)]
  integer, parameter :: t(*) = [(size(x, dim=k), k=1,2)]       ! fail
  integer, parameter :: u(*) = [(size(x, dim=k), k=1,rank(x))] ! fail
  integer, parameter :: v = product(shape(x))
  integer, parameter :: w = product([(size(x, dim=k), k=1,2)]) ! fail
  print *, s
  print *,         [(size(x, dim=k), k=1,rank(x))]
  print *, product([(size(x, dim=k), k=1,rank(x))])
end&lt;/LI-CODE&gt;&lt;P&gt;With current ifort/ifx I get:&lt;/P&gt;&lt;LI-CODE lang="none"&gt;% ifort ifort-size-simplify.f90
ifort-size-simplify.f90(6): error #7747: Invalid parameter expression.
  integer, parameter :: t(*) = [(size(x, dim=k), k=1,2)]       ! fail
---------------------------------^
ifort-size-simplify.f90(7): error #7747: Invalid parameter expression.
  integer, parameter :: u(*) = [(size(x, dim=k), k=1,rank(x))] ! fail
---------------------------------^
ifort-size-simplify.f90(9): error #6063: An INTEGER or REAL data type is required in this context.   [K]
  integer, parameter :: w = product([(size(x, dim=k), k=1,2)]) ! fail
--------------------------------------------------^
compilation aborted for ifort-size-simplify.f90 (code 1)&lt;/LI-CODE&gt;&lt;P&gt;Commenting the marked code lines allows the code to compile and work as expected.&amp;nbsp; It is only the simplification of the array constructors needed for the constant expressions above that fails.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Harald&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 20:59:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Failure-to-simplify-some-array-constructors-with-SIZE-intrinsic/m-p/1488581#M166450</guid>
      <dc:creator>Harald1</dc:creator>
      <dc:date>2023-05-22T20:59:05Z</dc:date>
    </item>
    <item>
      <title>Re:Failure to simplify some array constructors with SIZE intrinsic</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Failure-to-simplify-some-array-constructors-with-SIZE-intrinsic/m-p/1490102#M166492</link>
      <description>&lt;P&gt;This reproducer is indeed legal Fortran. I filed a bug report, CMPLRLLVM-48095. I'll let you know when a fix is available.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 May 2023 19:46:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Failure-to-simplify-some-array-constructors-with-SIZE-intrinsic/m-p/1490102#M166492</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2023-05-25T19:46:20Z</dc:date>
    </item>
    <item>
      <title>Re:Failure to simplify some array constructors with SIZE intrinsic</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Failure-to-simplify-some-array-constructors-with-SIZE-intrinsic/m-p/1546198#M169316</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/157087"&gt;@Harald1&lt;/a&gt;, no more faulty error messages with ifx or ifort with the releases that were published this week. Please check them out!&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Nov 2023 19:35:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Failure-to-simplify-some-array-constructors-with-SIZE-intrinsic/m-p/1546198#M169316</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2023-11-21T19:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Failure to simplify some array constructors with SIZE intrinsic</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Failure-to-simplify-some-array-constructors-with-SIZE-intrinsic/m-p/1546627#M169363</link>
      <description>&lt;P&gt;Wow, the ICE is gone, and I get a correct result at runtime.... &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 21:32:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Failure-to-simplify-some-array-constructors-with-SIZE-intrinsic/m-p/1546627#M169363</guid>
      <dc:creator>Harald1</dc:creator>
      <dc:date>2023-11-22T21:32:39Z</dc:date>
    </item>
  </channel>
</rss>

