<?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 Thanks.  Just curious about in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Error/m-p/1043327#M113518</link>
    <description>&lt;P&gt;Thanks.&amp;nbsp; Just curious about the expected release date for Update 2?&lt;/P&gt;

&lt;P&gt;Michael&lt;/P&gt;</description>
    <pubDate>Mon, 10 Nov 2014 18:23:06 GMT</pubDate>
    <dc:creator>Michael8</dc:creator>
    <dc:date>2014-11-10T18:23:06Z</dc:date>
    <item>
      <title>Compiler Error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Error/m-p/1043322#M113513</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;

&lt;P&gt;I am getting a compiler error, and was able to narrow it down to a test case.&amp;nbsp; The error is: &lt;FONT size="1" face="Consolas"&gt;&lt;FONT size="1" face="Consolas"&gt;The shapes of the array expressions do not conform.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;I am using the 14.0.3.202 version of the compiler.&amp;nbsp; When I switch back to version 12.0.5.221, it compiles just fine.&lt;/P&gt;

&lt;P&gt;Here is the sample code:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;module TestMod


&amp;nbsp;&amp;nbsp; implicit none
&amp;nbsp;&amp;nbsp; private

&amp;nbsp;&amp;nbsp; character (len = 100), dimension(5) :: charArr

contains

!******************************************************************************

&amp;nbsp;&amp;nbsp; character (len = 100) function GetCharArr()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dimension :: GetCharArr(5)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetCharArr = charArr
&amp;nbsp;&amp;nbsp; end function GetCharArr

!******************************************************************************

end module TestMod&lt;/PRE&gt;

&lt;P&gt;Can anyone explain to me why I'm getting this error message, or, if it is possibly a compiler issue?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;BR /&gt;
	Michael&lt;/P&gt;</description>
      <pubDate>Fri, 31 Oct 2014 18:00:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Error/m-p/1043322#M113513</guid>
      <dc:creator>Michael8</dc:creator>
      <dc:date>2014-10-31T18:00:43Z</dc:date>
    </item>
    <item>
      <title>It's a compiler bug. If you</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Error/m-p/1043323#M113514</link>
      <description>&lt;P&gt;It's a compiler bug. If you do it this way instead, it works:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;function GetCharArr()
      character(len=100),dimension(5) :: GetCharArr&lt;/PRE&gt;

&lt;P&gt;I prefer this version as it keeps all the declaration in one place. For some reason the use of LEN= throws it off here. I will report this to the developers and will let you know of any progress. Thanks. Issue ID is&amp;nbsp;DPD200362719.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Oct 2014 18:13:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Error/m-p/1043323#M113514</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2014-10-31T18:13:00Z</dc:date>
    </item>
    <item>
      <title>Thank you for the quick reply</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Error/m-p/1043324#M113515</link>
      <description>&lt;P&gt;Thank you for the quick reply, and for the workaround.&lt;/P&gt;

&lt;P&gt;I'll look forward to hearing about progress,&lt;/P&gt;

&lt;P&gt;Thanks.&lt;BR /&gt;
	Michael&lt;/P&gt;</description>
      <pubDate>Fri, 31 Oct 2014 18:17:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Error/m-p/1043324#M113515</guid>
      <dc:creator>Michael8</dc:creator>
      <dc:date>2014-10-31T18:17:13Z</dc:date>
    </item>
    <item>
      <title>Quote:Steve Lionel (Intel)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Error/m-p/1043325#M113516</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Steve Lionel (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;It's a compiler bug. If you do it this way instead, it works:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;function GetCharArr()
      character(len=100),dimension(5) :: GetCharArr&lt;/PRE&gt;

&lt;P&gt;I prefer this version as it keeps all the declaration in one place. For some reason the use of LEN= throws it off here. I will report this to the developers and will let you know of any progress. Thanks. Issue ID is&amp;nbsp;DPD200362719.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Michael,&lt;/P&gt;

&lt;P&gt;In addition to Steve's suggestion, the following is also an option which provides both flexibility with respect to defining the function result as well as making it more readable:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;   FUNCTION GetCharArr() RESULT(RetArr)
      
      !.. Function result
      CHARACTER(LEN = 100) :: RetArr(5)
      
      RetArr = charArr
      
   END FUNCTION GetCharArr
&lt;/PRE&gt;

&lt;P&gt;Also, consider adding the PURE attribute to FUNCTION subprograms as the compiler can help flag if the function has "side effects" beyond returning what it is supposed to.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Oct 2014 22:14:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Error/m-p/1043325#M113516</guid>
      <dc:creator>FortranFan</dc:creator>
      <dc:date>2014-10-31T22:14:54Z</dc:date>
    </item>
    <item>
      <title>I expect this bug to be fixed</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Error/m-p/1043326#M113517</link>
      <description>&lt;P&gt;I expect this bug to be fixed in Update 2.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 16:34:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Error/m-p/1043326#M113517</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2014-11-10T16:34:18Z</dc:date>
    </item>
    <item>
      <title>Thanks.  Just curious about</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Error/m-p/1043327#M113518</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; Just curious about the expected release date for Update 2?&lt;/P&gt;

&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 18:23:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Error/m-p/1043327#M113518</guid>
      <dc:creator>Michael8</dc:creator>
      <dc:date>2014-11-10T18:23:06Z</dc:date>
    </item>
    <item>
      <title>Looks like early February.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Error/m-p/1043328#M113519</link>
      <description>&lt;P&gt;Looks like early February.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2014 18:52:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Compiler-Error/m-p/1043328#M113519</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2014-11-10T18:52:49Z</dc:date>
    </item>
  </channel>
</rss>

