<?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 Bizarre pointer behaviour with allocatable scalars in user defined types in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bizarre-pointer-behaviour-with-allocatable-scalars-in-user/m-p/856410#M67601</link>
    <description>I have some code which is behaving strangely when I set a pointer to point to an allocatable scalar that is a member of a user defined type.  &lt;BR /&gt;&lt;BR /&gt;When I run the attached short stretch of code I get different output from the WRITE statements in the AddElement subroutine, with only the first WRITE giving meaningful output. The confusing extract is&lt;BR /&gt;&lt;BR /&gt;e%content(pos)%element%dbg = 'CL'&lt;BR /&gt; p =&amp;gt; e%content(pos)%element      &lt;BR /&gt; WRITE (*,"('1&amp;gt;',A)") e%content(pos)%element%dbg&lt;BR /&gt; WRITE (*,"('2&amp;gt;',A)") p%dbg      &lt;BR /&gt;&lt;BR /&gt;I would have thought that the two lines of output would have to be the same, even in the face of a gross error somewhere else.  &lt;BR /&gt;&lt;BR /&gt;The code works as I would expect if I remove one level of procedure call (set this_is_driving_me_crazy to .FALSE., as far as I can tell B to B is the same code as A to A), or change the allocatable scalar to be a rank one, size one array (lines marked "! C" replace similar lines).&lt;BR /&gt;&lt;BR /&gt;What am I missing????&lt;BR /&gt;&lt;BR /&gt;All this with 11.0.066.  &lt;BR /&gt;&lt;BR /&gt;Thanks for any ... pointers ...&lt;BR /&gt;&lt;BR /&gt;IanH&lt;BR /&gt;</description>
    <pubDate>Tue, 27 Jan 2009 00:09:07 GMT</pubDate>
    <dc:creator>IanH</dc:creator>
    <dc:date>2009-01-27T00:09:07Z</dc:date>
    <item>
      <title>Bizarre pointer behaviour with allocatable scalars in user defined types</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bizarre-pointer-behaviour-with-allocatable-scalars-in-user/m-p/856410#M67601</link>
      <description>I have some code which is behaving strangely when I set a pointer to point to an allocatable scalar that is a member of a user defined type.  &lt;BR /&gt;&lt;BR /&gt;When I run the attached short stretch of code I get different output from the WRITE statements in the AddElement subroutine, with only the first WRITE giving meaningful output. The confusing extract is&lt;BR /&gt;&lt;BR /&gt;e%content(pos)%element%dbg = 'CL'&lt;BR /&gt; p =&amp;gt; e%content(pos)%element      &lt;BR /&gt; WRITE (*,"('1&amp;gt;',A)") e%content(pos)%element%dbg&lt;BR /&gt; WRITE (*,"('2&amp;gt;',A)") p%dbg      &lt;BR /&gt;&lt;BR /&gt;I would have thought that the two lines of output would have to be the same, even in the face of a gross error somewhere else.  &lt;BR /&gt;&lt;BR /&gt;The code works as I would expect if I remove one level of procedure call (set this_is_driving_me_crazy to .FALSE., as far as I can tell B to B is the same code as A to A), or change the allocatable scalar to be a rank one, size one array (lines marked "! C" replace similar lines).&lt;BR /&gt;&lt;BR /&gt;What am I missing????&lt;BR /&gt;&lt;BR /&gt;All this with 11.0.066.  &lt;BR /&gt;&lt;BR /&gt;Thanks for any ... pointers ...&lt;BR /&gt;&lt;BR /&gt;IanH&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Jan 2009 00:09:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bizarre-pointer-behaviour-with-allocatable-scalars-in-user/m-p/856410#M67601</guid>
      <dc:creator>IanH</dc:creator>
      <dc:date>2009-01-27T00:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre pointer behaviour with allocatable scalars in user</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bizarre-pointer-behaviour-with-allocatable-scalars-in-user/m-p/856411#M67602</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/212570"&gt;IanH&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;I have some code which is behaving strangely when I set a pointer to point to an allocatable scalar that is a member of a user defined type.  &lt;BR /&gt;&lt;BR /&gt;When I run the attached short stretch of code I get different output from the WRITE statements in the AddElement subroutine, with only the first WRITE giving meaningful output. The confusing extract is&lt;BR /&gt;&lt;BR /&gt;e%content(pos)%element%dbg = 'CL'&lt;BR /&gt; p =&amp;gt; e%content(pos)%element      &lt;BR /&gt; WRITE (*,"('1&amp;gt;',A)") e%content(pos)%element%dbg&lt;BR /&gt; WRITE (*,"('2&amp;gt;',A)") p%dbg      &lt;BR /&gt;&lt;BR /&gt;I would have thought that the two lines of output would have to be the same, even in the face of a gross error somewhere else.  &lt;BR /&gt;&lt;BR /&gt;The code works as I would expect if I remove one level of procedure call (set this_is_driving_me_crazy to .FALSE., as far as I can tell B to B is the same code as A to A), or change the allocatable scalar to be a rank one, size one array (lines marked "! C" replace similar lines).&lt;BR /&gt;&lt;BR /&gt;What am I missing????&lt;BR /&gt;&lt;BR /&gt;All this with 11.0.066.  &lt;BR /&gt;&lt;BR /&gt;Thanks for any ... pointers ...&lt;BR /&gt;&lt;BR /&gt;IanH&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
It is interesting that ifort 10.1.011 cannot compile this program. The line&lt;BR /&gt;TYPE(Element), ALLOCATABLE :: element&lt;BR /&gt;gives &lt;BR /&gt;Error: This scalar name is invalid in this context [ELEMENT]&lt;BR /&gt;pointing to the member 'element'.&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Jan 2009 01:26:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bizarre-pointer-behaviour-with-allocatable-scalars-in-user/m-p/856411#M67602</guid>
      <dc:creator>gib</dc:creator>
      <dc:date>2009-01-27T01:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre pointer behaviour with allocatable scalars in user</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bizarre-pointer-behaviour-with-allocatable-scalars-in-user/m-p/856412#M67603</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/311276"&gt;gib&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
It is interesting that ifort 10.1.011 cannot compile this program. The line&lt;BR /&gt;TYPE(Element), ALLOCATABLE :: element&lt;BR /&gt;gives &lt;BR /&gt;Error: This scalar name is invalid in this context [ELEMENT]&lt;BR /&gt;pointing to the member 'element'.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Expected - allocatable scalars is a new 11.0 feature.&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Jan 2009 01:53:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bizarre-pointer-behaviour-with-allocatable-scalars-in-user/m-p/856412#M67603</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-01-27T01:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre pointer behaviour with allocatable scalars in user</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bizarre-pointer-behaviour-with-allocatable-scalars-in-user/m-p/856413#M67604</link>
      <description>This is a compiler bug. It is not handling the p%dbg reference properly. I have reported it as issue DPD200111953.&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Jan 2009 21:05:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bizarre-pointer-behaviour-with-allocatable-scalars-in-user/m-p/856413#M67604</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-01-27T21:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre pointer behaviour with allocatable scalars in user</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bizarre-pointer-behaviour-with-allocatable-scalars-in-user/m-p/856414#M67605</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/336209"&gt;Steve Lionel (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;This is a compiler bug. It is not handling the p%dbg reference properly. I have reported it as issue DPD200111953.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thanks for the help. I'll work around it in the meantime by using a size one allocatable array.&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Jan 2009 21:42:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bizarre-pointer-behaviour-with-allocatable-scalars-in-user/m-p/856414#M67605</guid>
      <dc:creator>IanH</dc:creator>
      <dc:date>2009-01-27T21:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Bizarre pointer behaviour with allocatable scalars in user</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Bizarre-pointer-behaviour-with-allocatable-scalars-in-user/m-p/856415#M67606</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
The developers tell me that this bug has been fixed for the next release (May/June timeframe). Thanks for reporting it.&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Mar 2009 14:56:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Bizarre-pointer-behaviour-with-allocatable-scalars-in-user/m-p/856415#M67606</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-03-23T14:56:39Z</dc:date>
    </item>
  </channel>
</rss>

