<?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 The associated-ness of in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/associated-problem/m-p/1111034#M129194</link>
    <description>&lt;P&gt;The associated-ness of uninitialised pointer variables is undefined. So it could actually be true or false depending on the phase of the moon.&lt;/P&gt;

&lt;P&gt;To be sure you have reliable results, always initialise them first, for instance:&lt;/P&gt;

&lt;P&gt;&lt;CODE class="keyword"&gt;type&lt;/CODE&gt;&lt;CODE class="plain"&gt;(t), &lt;/CODE&gt;&lt;CODE class="keyword"&gt;pointer&lt;/CODE&gt; &lt;CODE class="plain"&gt;:: tp =&amp;gt; null()&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2016 09:20:43 GMT</pubDate>
    <dc:creator>Arjen_Markus</dc:creator>
    <dc:date>2016-12-12T09:20:43Z</dc:date>
    <item>
      <title>associated problem</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/associated-problem/m-p/1111033#M129193</link>
      <description>&lt;PRE class="brush:fortran;"&gt;program main
    implicit none

    type :: t
        integer :: a
    end type t

    type(t), pointer :: tp
    integer, pointer :: i

    if(associated(tp)) write(*,*) "tp is associated."
    if(associated(i )) write(*,*) "i  is associated."

end program main&lt;/PRE&gt;

&lt;P&gt;Code above outputs a strange result of "i is associated" but tp is not, why is that ?&lt;/P&gt;

&lt;P&gt;Intel(R) Visual Fortran Compiler 17.0.0.109 [IA-32] is the current compiler, and I also tried Linux version of ifort 13.1.1 and nothing wrong appears, thanks for reply.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 09:16:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/associated-problem/m-p/1111033#M129193</guid>
      <dc:creator>Blane_J_</dc:creator>
      <dc:date>2016-12-12T09:16:20Z</dc:date>
    </item>
    <item>
      <title>The associated-ness of</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/associated-problem/m-p/1111034#M129194</link>
      <description>&lt;P&gt;The associated-ness of uninitialised pointer variables is undefined. So it could actually be true or false depending on the phase of the moon.&lt;/P&gt;

&lt;P&gt;To be sure you have reliable results, always initialise them first, for instance:&lt;/P&gt;

&lt;P&gt;&lt;CODE class="keyword"&gt;type&lt;/CODE&gt;&lt;CODE class="plain"&gt;(t), &lt;/CODE&gt;&lt;CODE class="keyword"&gt;pointer&lt;/CODE&gt; &lt;CODE class="plain"&gt;:: tp =&amp;gt; null()&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 09:20:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/associated-problem/m-p/1111034#M129194</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2016-12-12T09:20:43Z</dc:date>
    </item>
    <item>
      <title>That's interesting about the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/associated-problem/m-p/1111035#M129195</link>
      <description>&lt;P&gt;That's interesting about the moon :)&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 09:35:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/associated-problem/m-p/1111035#M129195</guid>
      <dc:creator>Blane_J_</dc:creator>
      <dc:date>2016-12-12T09:35:27Z</dc:date>
    </item>
  </channel>
</rss>

