<?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 You're welcome David. Yes, I in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-in-behavior-of-derived-type-component-initialization/m-p/1024509#M108992</link>
    <description>&lt;P&gt;You're welcome David. Yes, I agree. I passed along IanH's earlier citation to the Doc writers.&amp;nbsp;It was helpful and very clear.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Sep 2015 16:07:10 GMT</pubDate>
    <dc:creator>Kevin_D_Intel</dc:creator>
    <dc:date>2015-09-15T16:07:10Z</dc:date>
    <item>
      <title>Change in behavior of derived-type component initialization expressions</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-in-behavior-of-derived-type-component-initialization/m-p/1024503#M108986</link>
      <description>&lt;P&gt;The following program compiles and runs with Intel Visual Fortran versions 10.1 through 14.0:&lt;/P&gt;

&lt;P&gt;PROGRAM TESTTYPE&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; TYPE MYTYPE&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTEGER :: I =&amp;gt; 0&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; END TYPE MYTYPE&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; TYPE(MYTYPE) :: X&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; WRITE(*,*) X%I&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	END PROGRAM TESTTYPE&lt;/P&gt;

&lt;P&gt;However, in versions 15 &amp;amp; 16 it fails with the following message:&lt;/P&gt;

&lt;P&gt;testtype.f90(4): error #6680: A constant is not permitted in this context.&amp;nbsp;&amp;nbsp; [0]&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTEGER :: I =&amp;gt; 0&lt;BR /&gt;
	----------------------^&lt;BR /&gt;
	compilation aborted for testtype.f90 (code 1)&lt;/P&gt;

&lt;P&gt;It is noted that replacing the '=&amp;gt;' operator with '=' in the initialization expression works in all versions of the compiler tested.&lt;/P&gt;

&lt;P&gt;------------------------------------------------------------------------------------------------------&lt;/P&gt;

&lt;P&gt;QUESTION: What is the reason for the change in behaviour?&lt;/P&gt;

&lt;P&gt;------------------------------------------------------------------------------------------------------&lt;/P&gt;

&lt;P&gt;The IVF documentation states:&lt;/P&gt;

&lt;P class="syntaxnote"&gt;Is an initialization expression, or for pointer components, =&amp;gt; NULL( ).&lt;/P&gt;

&lt;P class="syntaxnote"&gt;If &lt;SPAN class="parmname"&gt;init-ex&lt;/SPAN&gt; is specified, a double colon must appear in the component definition. &lt;STRONG&gt;The equals assignment symbol (=) can only be specified for nonpointer components.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P class="syntaxnote"&gt;The initialization expression is evaluated in the scoping unit of the type definition.&lt;/P&gt;

&lt;P&gt;One reading of the highlighted clause is that '=' or '=&amp;gt;' could be used for non-pointer components but that '=' must not be used for pointer components.&lt;/P&gt;

&lt;P&gt;Many thanks,&lt;/P&gt;

&lt;P&gt;David.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 03:07:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-in-behavior-of-derived-type-component-initialization/m-p/1024503#M108986</guid>
      <dc:creator>David_V_3</dc:creator>
      <dc:date>2015-09-14T03:07:17Z</dc:date>
    </item>
    <item>
      <title>I will research this changed</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-in-behavior-of-derived-type-component-initialization/m-p/1024504#M108987</link>
      <description>&lt;P&gt;I will research this changed behavior David and let you know what I find.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 10:01:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-in-behavior-of-derived-type-component-initialization/m-p/1024504#M108987</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2015-09-14T10:01:01Z</dc:date>
    </item>
    <item>
      <title>Surely the compiler is just</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-in-behavior-of-derived-type-component-initialization/m-p/1024505#M108988</link>
      <description>&lt;P&gt;Surely the compiler is just identifying bugs in your code that it did not identify before. The new behavior is an improvement!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 10:26:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-in-behavior-of-derived-type-component-initialization/m-p/1024505#M108988</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2015-09-14T10:26:10Z</dc:date>
    </item>
    <item>
      <title>For what it is worth, the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-in-behavior-of-derived-type-component-initialization/m-p/1024506#M108989</link>
      <description>&lt;P&gt;For what it is worth, the text in the current standard makes it absolutely clear.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;"If =&amp;gt; appears in component-initialization, POINTER shall appear in the component-attr-spec list. If = appears in component-initialization, neither POINTER nor ALLOCATABLE shall appear in the component-attr-spec-list."&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 10:59:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-in-behavior-of-derived-type-component-initialization/m-p/1024506#M108989</guid>
      <dc:creator>IanH</dc:creator>
      <dc:date>2015-09-14T10:59:44Z</dc:date>
    </item>
    <item>
      <title>Development believes parsing</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-in-behavior-of-derived-type-component-initialization/m-p/1024507#M108990</link>
      <description>&lt;P&gt;Development believes parsing was also cleaned up for incorrect uses (as others noted regarding the Fortran Standard) of “=&amp;gt;” for non-pointer initialization in conjunction with &lt;A href="https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/288794" target="_blank"&gt;this earlier post &lt;/A&gt;and internal tracking id DPD200157846 which was fixed in the 15.0 release, so this is the reason for the change in behavior.&lt;/P&gt;

&lt;P&gt;I notified our Documentation writers about clarifying the &lt;STRONG&gt;&lt;EM&gt;init-ex&lt;/EM&gt;&lt;/STRONG&gt; component description and the statement you cited to make the "=" and "=&amp;gt;" uses clearer in a future revision.&lt;/P&gt;

&lt;P&gt;(Internal tracking id: DPD200376067)&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2015 17:34:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-in-behavior-of-derived-type-component-initialization/m-p/1024507#M108990</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2015-09-14T17:34:44Z</dc:date>
    </item>
    <item>
      <title>Thank you for looking into</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-in-behavior-of-derived-type-component-initialization/m-p/1024508#M108991</link>
      <description>&lt;P&gt;Thank you for looking into this issue Kevin and thank you Ian H for pointing out relevant text in the standard ... the latter may be of assistance to the Intel documentation writers in their review of the &lt;STRONG&gt;&lt;EM&gt;init-ex&lt;/EM&gt;&lt;/STRONG&gt; component description.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
	David.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 09:58:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-in-behavior-of-derived-type-component-initialization/m-p/1024508#M108991</guid>
      <dc:creator>David_V_3</dc:creator>
      <dc:date>2015-09-15T09:58:00Z</dc:date>
    </item>
    <item>
      <title>You're welcome David. Yes, I</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-in-behavior-of-derived-type-component-initialization/m-p/1024509#M108992</link>
      <description>&lt;P&gt;You're welcome David. Yes, I agree. I passed along IanH's earlier citation to the Doc writers.&amp;nbsp;It was helpful and very clear.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 16:07:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-in-behavior-of-derived-type-component-initialization/m-p/1024509#M108992</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2015-09-15T16:07:10Z</dc:date>
    </item>
    <item>
      <title>Quote:Kevin Davis (Intel)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-in-behavior-of-derived-type-component-initialization/m-p/1024510#M108993</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Kevin Davis (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;You're welcome David. Yes, I agree. I passed along IanH's earlier citation to the Doc writers.&amp;nbsp;It was helpful and very clear.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Kevin,&lt;/P&gt;

&lt;P&gt;Please see my Message #11 in another thread where documentation is being discussed:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/592538#comment-1839556" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/592538#comment-1839556&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 17:18:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Change-in-behavior-of-derived-type-component-initialization/m-p/1024510#M108993</guid>
      <dc:creator>FortranFan</dc:creator>
      <dc:date>2015-09-15T17:18:06Z</dc:date>
    </item>
  </channel>
</rss>

