<?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 Thank you very much for the in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/character-array-dynamic-allocation-debugging/m-p/962349#M94968</link>
    <description>&lt;P&gt;Thank you very much for the clear and thorough explanation. Please post any further information to this thread if and when it becomes available.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2014 18:48:14 GMT</pubDate>
    <dc:creator>jr00</dc:creator>
    <dc:date>2014-01-21T18:48:14Z</dc:date>
    <item>
      <title>character array dynamic allocation debugging</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/character-array-dynamic-allocation-debugging/m-p/962344#M94963</link>
      <description>&lt;P&gt;Noticed this odd behavior with the attached sample code below in IVF 11.1 + VS2008; looking at dynamically allocating a character array from an assumed shape string array passed to a function.&amp;nbsp; The write staement produces the intended output "test string" but watching the value of 'test' in the 'atest' function always produces non-printing character garbage. Cleaning and re-building the solution has no effect and creating a completely new solution changes the value of 'test' in the debugger, but does not correct the issue.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2014 03:43:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/character-array-dynamic-allocation-debugging/m-p/962344#M94963</guid>
      <dc:creator>jr00</dc:creator>
      <dc:date>2014-01-18T03:43:04Z</dc:date>
    </item>
    <item>
      <title>I have IVF11.1.070 but I no</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/character-array-dynamic-allocation-debugging/m-p/962345#M94964</link>
      <description>&lt;P&gt;I have IVF11.1.070 but I no longer have VS2008 installed. The input string &lt;STRONG&gt;str &lt;/STRONG&gt;is shown correctly when I use IVF11.1.070 with VS2012. However, the result string &lt;STRONG&gt;test&lt;/STRONG&gt; is shown as containing garbage (uninitialized?) in the Locals and in the Watch windows, as you reported.&lt;/P&gt;

&lt;P&gt;With the current 14.0.1.139 compiler and VS2012, the error in displaying &lt;STRONG&gt;test&lt;/STRONG&gt; is still present, but now the value is shown as "undefined pointer/array", even when compilation has been done with /Zi /Od.&lt;/P&gt;

&lt;P&gt;This information may not be enough for you, but it does indicate that the problem is not specific to the 11.1.070 compiler or the version of Visual Studio used.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2014 13:58:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/character-array-dynamic-allocation-debugging/m-p/962345#M94964</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2014-01-18T13:58:00Z</dc:date>
    </item>
    <item>
      <title>Since 11.1 came out 3+ years</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/character-array-dynamic-allocation-debugging/m-p/962346#M94965</link>
      <description>&lt;P&gt;Since 11.1 came out 3+ years ago, there have been several improvements to the debug information for allocatables.&lt;/P&gt;

&lt;P&gt;With 14.0.1, when entering the subroutine, yes, the local variable "test" is undefined, because it is unallocated (not-yet allocated?)&lt;/P&gt;

&lt;P&gt;However, if you step further in the subroutine, it is allocated, VS2008 shows it defined, although the contents are garbage (expected, because our allocation routines do not pre-set the memory to zero).&amp;nbsp;&lt;/P&gt;

&lt;P&gt;A few more steps, and you can watch the string being copied, one character at a time.&lt;/P&gt;

&lt;P&gt;But, that is with 14.0.1, not with 11.1.&amp;nbsp; I think if you're unable to upgrade, you might be stuck with the bug.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --Lorri&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2014 11:45:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/character-array-dynamic-allocation-debugging/m-p/962346#M94965</guid>
      <dc:creator>Lorri_M_Intel</dc:creator>
      <dc:date>2014-01-21T11:45:29Z</dc:date>
    </item>
    <item>
      <title>I am stuck with 11.1 for a</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/character-array-dynamic-allocation-debugging/m-p/962347#M94966</link>
      <description>&lt;P&gt;I am stuck with 11.1 for a while.&lt;/P&gt;

&lt;P&gt;Recall the output to stdout is correct with IVF 11, so is the bug in the compiler or the VS debugging tools that show the garbage? Furthmore, will re-building code in release mode&amp;nbsp;based on the test case produce robust &amp;amp;&amp;nbsp;reliable results?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2014 12:03:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/character-array-dynamic-allocation-debugging/m-p/962347#M94966</guid>
      <dc:creator>jr00</dc:creator>
      <dc:date>2014-01-21T12:03:09Z</dc:date>
    </item>
    <item>
      <title>I think you have two</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/character-array-dynamic-allocation-debugging/m-p/962348#M94967</link>
      <description>&lt;P&gt;I think you have two questions here; let me rephrase, and address them in reverse order.&lt;BR /&gt;
	If I have restated them incorrectly, I apologize.&lt;/P&gt;

&lt;P&gt;RE: Will building this test case in release mode produce correct results?&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; I would expect that to be true.&amp;nbsp; The actual runtime code that is generated is independent of debug code generation, although optimizations can affect the resulting runtime code (of course).&lt;/P&gt;

&lt;P&gt;RE: Since the correct value is written to the console, what causes the bug?&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug information&amp;nbsp;needs to be&amp;nbsp;represented in a canonical form, applicable to the platform.&amp;nbsp; Then the debugger(s) there needs to be able to read and display that canonical form.&amp;nbsp;&amp;nbsp; On Windows, the canonical form is quite C-centric and Fortran allocatable types are an extension.&amp;nbsp;&amp;nbsp;We provide a tool that plugs into the&amp;nbsp;Visual Studio debugger that knows how to read these extensions and display them to the user.&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; So.&amp;nbsp; Where was the bug?&amp;nbsp;&amp;nbsp;At this point, I can't say whether&amp;nbsp;the compiler generated an ill-formed extension, or the&amp;nbsp;tool misread a well-formed extension.&amp;nbsp; Both things have happened in the past.&lt;/P&gt;

&lt;P&gt;Bottom line, the debug information generated is separate from the&amp;nbsp;runtime code that is generated, and a problem in one does not necessarily infer a problem in the other.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Does this help?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --Lorri&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2014 17:44:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/character-array-dynamic-allocation-debugging/m-p/962348#M94967</guid>
      <dc:creator>Lorri_M_Intel</dc:creator>
      <dc:date>2014-01-21T17:44:56Z</dc:date>
    </item>
    <item>
      <title>Thank you very much for the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/character-array-dynamic-allocation-debugging/m-p/962349#M94968</link>
      <description>&lt;P&gt;Thank you very much for the clear and thorough explanation. Please post any further information to this thread if and when it becomes available.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2014 18:48:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/character-array-dynamic-allocation-debugging/m-p/962349#M94968</guid>
      <dc:creator>jr00</dc:creator>
      <dc:date>2014-01-21T18:48:14Z</dc:date>
    </item>
  </channel>
</rss>

