<?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 Allocatable Array Shape Conformance in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocatable-Array-Shape-Conformance/m-p/817415#M45928</link>
    <description>&lt;P&gt;The IVF11.1.067 does not give some compile / run-time error for allocatable array shape conformance problem. For example:&lt;/P&gt;&lt;P&gt;subroutine Array_Shape_Conformance&lt;/P&gt;&lt;P&gt;implicit none&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;real:: ra(3, 3), rb(4, 4), rc(4, 4)&lt;/P&gt;&lt;P&gt;real, allocatable:: sa(:, :), sb(:, :), xy(:) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ra = 3.0; rb = 4.0;&lt;/P&gt;&lt;P&gt;! The shapes of the array expressions do not conform.&lt;/P&gt;&lt;P&gt;! rc = ra + rb ! *** *** *** error &lt;/P&gt;&lt;P&gt;allocate( sa(3, 3), source = ra )&lt;/P&gt;&lt;P&gt;allocate( sb(4, 4), source = rb )&lt;/P&gt;&lt;P&gt;rc = sa + sb ! the compiler give no compile or run-time error&lt;/P&gt;&lt;P&gt;write(unit = *, fmt = "(4F12.7)") rc&lt;/P&gt;&lt;P&gt;return&lt;/P&gt;&lt;P&gt;end subroutine&lt;/P&gt;</description>
    <pubDate>Sat, 25 Sep 2010 14:05:19 GMT</pubDate>
    <dc:creator>asymptotic</dc:creator>
    <dc:date>2010-09-25T14:05:19Z</dc:date>
    <item>
      <title>Allocatable Array Shape Conformance</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocatable-Array-Shape-Conformance/m-p/817415#M45928</link>
      <description>&lt;P&gt;The IVF11.1.067 does not give some compile / run-time error for allocatable array shape conformance problem. For example:&lt;/P&gt;&lt;P&gt;subroutine Array_Shape_Conformance&lt;/P&gt;&lt;P&gt;implicit none&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;real:: ra(3, 3), rb(4, 4), rc(4, 4)&lt;/P&gt;&lt;P&gt;real, allocatable:: sa(:, :), sb(:, :), xy(:) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ra = 3.0; rb = 4.0;&lt;/P&gt;&lt;P&gt;! The shapes of the array expressions do not conform.&lt;/P&gt;&lt;P&gt;! rc = ra + rb ! *** *** *** error &lt;/P&gt;&lt;P&gt;allocate( sa(3, 3), source = ra )&lt;/P&gt;&lt;P&gt;allocate( sb(4, 4), source = rb )&lt;/P&gt;&lt;P&gt;rc = sa + sb ! the compiler give no compile or run-time error&lt;/P&gt;&lt;P&gt;write(unit = *, fmt = "(4F12.7)") rc&lt;/P&gt;&lt;P&gt;return&lt;/P&gt;&lt;P&gt;end subroutine&lt;/P&gt;</description>
      <pubDate>Sat, 25 Sep 2010 14:05:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocatable-Array-Shape-Conformance/m-p/817415#M45928</guid>
      <dc:creator>asymptotic</dc:creator>
      <dc:date>2010-09-25T14:05:19Z</dc:date>
    </item>
    <item>
      <title>Allocatable Array Shape Conformance</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocatable-Array-Shape-Conformance/m-p/817416#M45929</link>
      <description>The above example should be a runtime error when bounds checking enabled.&lt;BR /&gt;&lt;BR /&gt;While there is sufficient information at compile time to determine that the expression is in error (due to knowing the shape of the arrays), I do not believe there is something in the specification to require the compiler to detect such an error. A "lint" feature should detect this error in programming.</description>
      <pubDate>Mon, 27 Sep 2010 17:17:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocatable-Array-Shape-Conformance/m-p/817416#M45929</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2010-09-27T17:17:20Z</dc:date>
    </item>
    <item>
      <title>Allocatable Array Shape Conformance</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocatable-Array-Shape-Conformance/m-p/817417#M45930</link>
      <description>As rc is big enough to accommodate all SIZEs involved, this may not strictly produce a bounds check error. I agree with Jim that it ought to produce a run time error when /check is set at compile time. Apparently, other brands of compilers agree also, judging by web references to updates to diagnose such problems. &lt;BR /&gt;Early f90 compilers diagnosed these unconditionally, but the performance hit was unacceptable.&lt;BR /&gt;I notice the results produced by ifort and gfortran are different, both problematical.</description>
      <pubDate>Mon, 27 Sep 2010 18:03:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocatable-Array-Shape-Conformance/m-p/817417#M45930</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-09-27T18:03:04Z</dc:date>
    </item>
    <item>
      <title>Allocatable Array Shape Conformance</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocatable-Array-Shape-Conformance/m-p/817418#M45931</link>
      <description>The Intel compiler does not do run-time shape checking. This is on our wish list. Sometimes, array bounds checking will be triggered by such an error but not always.</description>
      <pubDate>Mon, 27 Sep 2010 19:19:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocatable-Array-Shape-Conformance/m-p/817418#M45931</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-09-27T19:19:26Z</dc:date>
    </item>
    <item>
      <title>Allocatable Array Shape Conformance</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocatable-Array-Shape-Conformance/m-p/817419#M45932</link>
      <description>Thanks a lot.&lt;BR /&gt;#1 what's meaning of -- lint&lt;BR /&gt;#2 what's meaning of -- rc&lt;BR /&gt;#3 I suggest: the IVF compiler give a run-time switch for (allocatable) array shape checking.</description>
      <pubDate>Mon, 27 Sep 2010 23:19:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocatable-Array-Shape-Conformance/m-p/817419#M45932</guid>
      <dc:creator>asymptotic</dc:creator>
      <dc:date>2010-09-27T23:19:34Z</dc:date>
    </item>
    <item>
      <title>Allocatable Array Shape Conformance</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocatable-Array-Shape-Conformance/m-p/817420#M45933</link>
      <description>lint is an old Unix term for static syntax checking.&lt;BR /&gt;rc is the name you gave your array.&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Sep 2010 23:31:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Allocatable-Array-Shape-Conformance/m-p/817420#M45933</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-09-27T23:31:51Z</dc:date>
    </item>
  </channel>
</rss>

