<?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 It is not entirely clear to in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-array-size-with-realloc-lhs-when-a-type-contains-a/m-p/948329#M91593</link>
    <description>&lt;P&gt;It is not entirely clear to me that this is the same as Ian's issue, I'm pretty sure it's not the 244378 issue. But there is probably some commonality here.&amp;nbsp; I will report this to the developers - thanks for the example - I decided to attach it to DPD200236021 (Ian's)&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2013 13:16:35 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2013-07-12T13:16:35Z</dc:date>
    <item>
      <title>Wrong array size with realloc_lhs when a type contains a allocatable class component</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-array-size-with-realloc-lhs-when-a-type-contains-a/m-p/948326#M91590</link>
      <description>&lt;P&gt;We have a large F2003 code that runs fine on IVF12.1 but always caused unexpected behavior on IVF13.x (and also the beta IVF14.x).&lt;/P&gt;
&lt;P&gt;After quite a long search, we were able to attribute the problem to a (in my understanding) incorrect behavior when automatically reallocating the LHS of an array assignment.&lt;/P&gt;
&lt;P&gt;I have a attached a (minimal?) demonstrator for that issue. It needs to be compiled with F2003 semantics enabled (or realloc_lhs).&lt;/P&gt;
&lt;P&gt;I would expect that both reallocated arrays (Target...) should have size 5, however, after assignment the TargetArrayWithAllocatableClass has the full size of the src, and not just the first 5 elements.&lt;/P&gt;
&lt;P&gt;The bug also disappers when changing the class(ATYPE), ALLOCATABLE to a class(ATYPE), POINTER.&lt;/P&gt;
&lt;P&gt;Best regards, Thomas&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;[fortran]&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; module classdefs&lt;BR /&gt; &lt;BR /&gt; type :: AType&lt;BR /&gt; real :: dummy&lt;BR /&gt; end type&lt;BR /&gt; &lt;BR /&gt; type :: ClassWithAllocatableClassComponent&lt;BR /&gt; class (AType), ALLOCATABLE :: dummy&lt;BR /&gt; end type&lt;BR /&gt; &lt;BR /&gt; type :: ClassWithAllocatableTypeComponent&lt;BR /&gt; type (AType), ALLOCATABLE :: dummy&lt;BR /&gt; end type&lt;BR /&gt; &lt;BR /&gt; type PtrToClassWithAllocatableClassComponent&lt;BR /&gt; type (ClassWithAllocatableClassComponent), POINTER :: ptr&lt;BR /&gt; end type&lt;BR /&gt; type PtrToClassWithAllocatableTypeComponent&lt;BR /&gt; type (ClassWithAllocatableTypeComponent), POINTER :: ptr&lt;BR /&gt; end type&lt;BR /&gt; &lt;BR /&gt; end module&lt;BR /&gt; &lt;BR /&gt; program AllocatableClassComponentBug&lt;BR /&gt; use classdefs&lt;BR /&gt; implicit none&lt;BR /&gt; &lt;BR /&gt; ! Variables&lt;BR /&gt; type (PtrToClassWithAllocatableClassComponent), ALLOCATABLE :: SrcArrayWithAllocatableClass(:)&lt;BR /&gt; type (PtrToClassWithAllocatableTypeComponent), ALLOCATABLE :: SrcArrayWithAllocatableType(:)&lt;BR /&gt; type (PtrToClassWithAllocatableClassComponent), ALLOCATABLE :: TargetArrayWithAllocatableClass(:)&lt;BR /&gt; type (PtrToClassWithAllocatableTypeComponent), ALLOCATABLE :: TargetArrayWithAllocatableType(:)&lt;BR /&gt; integer i&lt;/P&gt;
&lt;P&gt;ALLOCATE(SrcArrayWithAllocatableClass(10))&lt;BR /&gt; ALLOCATE(SrcArrayWIthAllocatableType(10))&lt;BR /&gt; &lt;BR /&gt; TargetArrayWithAllocatableClass = SrcArrayWithAllocatableClass(1:5)&lt;BR /&gt; TargetArrayWithAllocatableType = SrcArrayWithAllocatableType(1:5)&lt;/P&gt;
&lt;P&gt;PRINT *, 'Expected size for both Targets is 5'&lt;BR /&gt; PRINT *, 'Actual size for TargetArrayWithAllocatableClass is ', size(TargetArrayWithAllocatableClass)&lt;BR /&gt; PRINT *, 'Actual size for TargetArrayWithAllocatableType is ', size(TargetArrayWithAllocatableType)&lt;BR /&gt; &lt;BR /&gt; end program AllocatableClassComponentBug&lt;/P&gt;
&lt;P&gt;[/fortran]&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 20:59:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-array-size-with-realloc-lhs-when-a-type-contains-a/m-p/948326#M91590</guid>
      <dc:creator>thomas_boehme</dc:creator>
      <dc:date>2013-07-11T20:59:38Z</dc:date>
    </item>
    <item>
      <title>I have just seen that the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-array-size-with-realloc-lhs-when-a-type-contains-a/m-p/948327#M91591</link>
      <description>&lt;P&gt;I have just seen that the above issue is likely related to issue&amp;nbsp;DPD200243378 posten in the Linux forum a few days ago.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 21:37:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-array-size-with-realloc-lhs-when-a-type-contains-a/m-p/948327#M91591</guid>
      <dc:creator>thomas_boehme</dc:creator>
      <dc:date>2013-07-11T21:37:35Z</dc:date>
    </item>
    <item>
      <title>For what it is worth:</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-array-size-with-realloc-lhs-when-a-type-contains-a/m-p/948328#M91592</link>
      <description>&lt;P&gt;For what it is worth: allocatable polymorphic components require considerable "care" when working with current/recent ifort.&amp;nbsp; I've been able to get by replacing assignments with ALLOCATE(lhs%alloc_poly_component, SOURCE=rhs%alloc_poly_component) once that was supported.&amp;nbsp; Dancing on a pin head while facing north and juggling six open bottles of wine also helps, or failing that, just drink the wine.&lt;/P&gt;
&lt;P&gt;I put some test cases together in this thread &lt;A href="http://software.intel.com/en-us/forums/topic/326077"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 22:43:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-array-size-with-realloc-lhs-when-a-type-contains-a/m-p/948328#M91592</guid>
      <dc:creator>IanH</dc:creator>
      <dc:date>2013-07-11T22:43:09Z</dc:date>
    </item>
    <item>
      <title>It is not entirely clear to</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-array-size-with-realloc-lhs-when-a-type-contains-a/m-p/948329#M91593</link>
      <description>&lt;P&gt;It is not entirely clear to me that this is the same as Ian's issue, I'm pretty sure it's not the 244378 issue. But there is probably some commonality here.&amp;nbsp; I will report this to the developers - thanks for the example - I decided to attach it to DPD200236021 (Ian's)&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2013 13:16:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-array-size-with-realloc-lhs-when-a-type-contains-a/m-p/948329#M91593</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2013-07-12T13:16:35Z</dc:date>
    </item>
    <item>
      <title>IanH,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-array-size-with-realloc-lhs-when-a-type-contains-a/m-p/948330#M91594</link>
      <description>&lt;P&gt;IanH,&lt;/P&gt;
&lt;P&gt;Have you posted a link of you on Youtube of you&amp;nbsp;dancing on a pin head while facing north and juggling six open bottles of wine.&lt;/P&gt;
&lt;P&gt;I'd like to see it.&lt;/P&gt;
&lt;P&gt;Jim ;)&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2013 18:45:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-array-size-with-realloc-lhs-when-a-type-contains-a/m-p/948330#M91594</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2013-07-12T18:45:28Z</dc:date>
    </item>
    <item>
      <title>The developers tell me that</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-array-size-with-realloc-lhs-when-a-type-contains-a/m-p/948331#M91595</link>
      <description>&lt;P&gt;The developers tell me that this is not the same as the earlier issue.&amp;nbsp; New issue DPD200247184 created for this one.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2013 15:21:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-array-size-with-realloc-lhs-when-a-type-contains-a/m-p/948331#M91595</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2013-08-15T15:21:05Z</dc:date>
    </item>
    <item>
      <title>Steve, thanks for keeping me</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-array-size-with-realloc-lhs-when-a-type-contains-a/m-p/948332#M91596</link>
      <description>&lt;P&gt;Steve, thanks for keeping me informed and creating the new issue.&lt;/P&gt;
&lt;P&gt;BR, Thomas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2013 12:47:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-array-size-with-realloc-lhs-when-a-type-contains-a/m-p/948332#M91596</guid>
      <dc:creator>thomas_boehme</dc:creator>
      <dc:date>2013-08-16T12:47:11Z</dc:date>
    </item>
    <item>
      <title>This uncovered multiple</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-array-size-with-realloc-lhs-when-a-type-contains-a/m-p/948333#M91597</link>
      <description>&lt;P&gt;This uncovered multiple problems, which required fixes in the compiler and run-time library. It looks as if those will get in for the October update.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2013 20:28:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-array-size-with-realloc-lhs-when-a-type-contains-a/m-p/948333#M91597</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2013-08-27T20:28:07Z</dc:date>
    </item>
  </channel>
</rss>

