<?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 Neil - The root cause was a in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/13-0-compiler-bug-file-position-not-advanced-after-input-data/m-p/924310#M86157</link>
    <description>Neil - The root cause was a run-time I/O library issue that I confirmed is fixed in our internal builds. I expect the fix will be in the next XE2013 update 2 (tentatively in late January). The program’s output when using our internal build is now identical with the expected output you noted earlier.

Thank you again for reporting this defect.</description>
    <pubDate>Tue, 06 Nov 2012 16:37:00 GMT</pubDate>
    <dc:creator>Kevin_D_Intel</dc:creator>
    <dc:date>2012-11-06T16:37:00Z</dc:date>
    <item>
      <title>13.0 compiler bug: file position not advanced after input data transfer</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/13-0-compiler-bug-file-position-not-advanced-after-input-data/m-p/924306#M86153</link>
      <description>&lt;P&gt;The small attached program writes the string 'abcdefghijkl'&amp;nbsp;(no trailing newline)&amp;nbsp;to a file, opens the file for stream access, and reads the file in 8-character&amp;nbsp;chunks into a character array buffer. &amp;nbsp; While reading the second chunk the&amp;nbsp;EOF is encountered. &amp;nbsp;The read includes IOSTAT= to handle the EOF condition.&amp;nbsp;What I expect to have happened is for the data preceding the EOF to have been&amp;nbsp;successfully transferred into the initial elements of the buffer array and&amp;nbsp;for the file position to have been advanced up to the EOF. &amp;nbsp;This is the&amp;nbsp;behavior I see with a number of compilers (NAG, GFortran, PGI), but the&amp;nbsp;Intel 13.0 compiler behaves differently, and I believe incorrectly.&amp;nbsp;While the appropriate data is transfered into the initial elements of the&amp;nbsp;buffer array, the file position is not advanced. &amp;nbsp;Here's the expected output&amp;nbsp;of the program:&lt;/P&gt;
&lt;P&gt;initial stream position= 1&lt;BR /&gt;reading into 8-character buffer...&lt;BR /&gt;current stream position= 9 , buffer length= 8&lt;BR /&gt;buffer=abcdefgh&lt;BR /&gt;reading into 8-character buffer...&lt;BR /&gt;current stream position= 13 , buffer length= 4&lt;BR /&gt;buffer=ijkl&lt;/P&gt;
&lt;P&gt;Here's the output using the Intel 13.0.0 compiler:&lt;/P&gt;
&lt;P&gt;initial stream position= 1&lt;BR /&gt;reading into 8-character buffer...&lt;BR /&gt;current stream position= 9 , buffer length= 8&lt;BR /&gt;buffer=abcdefgh&lt;BR /&gt;reading into 8-character buffer...&lt;BR /&gt;current stream position= 9 , buffer length= 0&lt;BR /&gt;buflen=0, dumping contents of entire buffer&lt;BR /&gt;buffer=ijklefgh&lt;/P&gt;
&lt;P&gt;I think this (incorrect) behavior may be based on a flawed understanding&amp;nbsp;of 9.11.3 (3) which says in part, "If an end-of-file condition occurs during&amp;nbsp;execution of an input/output statement that contains either an END= specifier&amp;nbsp;or an IOSTAT= specifier, and an error condition does not occur then: if the&amp;nbsp;statement is a READ statement [...] all input list items or namelist group&amp;nbsp;objects in the statement that initiated the transfer become undefined".&amp;nbsp;Each item in the input list initiates its own data transfer, in order,&amp;nbsp;and each element of the buffer array is considered an effective item (see&amp;nbsp;9.6.3, par 7 (bullet 1) and par 8). &amp;nbsp;Consequently, data transfer should&amp;nbsp;have completed successfully for the initial elements of the buffer array&amp;nbsp;and the file position advanced accordingly.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Oct 2012 19:07:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/13-0-compiler-bug-file-position-not-advanced-after-input-data/m-p/924306#M86153</guid>
      <dc:creator>Neil_Carlson</dc:creator>
      <dc:date>2012-10-13T19:07:14Z</dc:date>
    </item>
    <item>
      <title>Thank you for the details and</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/13-0-compiler-bug-file-position-not-advanced-after-input-data/m-p/924307#M86154</link>
      <description>&lt;P&gt;Thank you for the details and convenient reproducer. I reported this to our I/O developers (internal tracking id noted below) for further analysis. The behavior when built w/13.0 is not different vs. our earlier releases so at least the behavior noted w/13.0 is not new. I will keep you updated on what I hear from our Developers.&lt;/P&gt;
&lt;P&gt;(Internal tracking id: DPD200237439)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;(Resolution Update on 02/08/2013): &lt;/STRONG&gt;This defect is fixed in the Intel Fortran Composer XE 2013 Update 2 (2013.2.146 - Linux)&lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2012 08:26:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/13-0-compiler-bug-file-position-not-advanced-after-input-data/m-p/924307#M86154</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2012-10-15T08:26:00Z</dc:date>
    </item>
    <item>
      <title>Kevin-</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/13-0-compiler-bug-file-position-not-advanced-after-input-data/m-p/924308#M86155</link>
      <description>Kevin-

I should have noted that according to 9.3.4.4.1 the file should have been positioned after the EOF after the read that encounters the EOF.  This is regardless of how 9.11.3 is interpreted.  It's clear from my reproducer that this isn't happening.

-Neil</description>
      <pubDate>Mon, 15 Oct 2012 14:08:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/13-0-compiler-bug-file-position-not-advanced-after-input-data/m-p/924308#M86155</guid>
      <dc:creator>Neil_Carlson</dc:creator>
      <dc:date>2012-10-15T14:08:47Z</dc:date>
    </item>
    <item>
      <title>Thank you, Neil. I added your</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/13-0-compiler-bug-file-position-not-advanced-after-input-data/m-p/924309#M86156</link>
      <description>Thank you, Neil. I added your additional note to the internal tracking report.</description>
      <pubDate>Mon, 15 Oct 2012 15:30:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/13-0-compiler-bug-file-position-not-advanced-after-input-data/m-p/924309#M86156</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2012-10-15T15:30:59Z</dc:date>
    </item>
    <item>
      <title>Neil - The root cause was a</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/13-0-compiler-bug-file-position-not-advanced-after-input-data/m-p/924310#M86157</link>
      <description>Neil - The root cause was a run-time I/O library issue that I confirmed is fixed in our internal builds. I expect the fix will be in the next XE2013 update 2 (tentatively in late January). The program’s output when using our internal build is now identical with the expected output you noted earlier.

Thank you again for reporting this defect.</description>
      <pubDate>Tue, 06 Nov 2012 16:37:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/13-0-compiler-bug-file-position-not-advanced-after-input-data/m-p/924310#M86157</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2012-11-06T16:37:00Z</dc:date>
    </item>
    <item>
      <title>This defect is fixed in the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/13-0-compiler-bug-file-position-not-advanced-after-input-data/m-p/924311#M86158</link>
      <description>&lt;P&gt;This defect is fixed in the Intel Fortran Composer XE &lt;STRONG&gt;2013 Update 2&lt;/STRONG&gt; (2013.1.146 - Linux)&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2013 12:47:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/13-0-compiler-bug-file-position-not-advanced-after-input-data/m-p/924311#M86158</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2013-02-08T12:47:21Z</dc:date>
    </item>
  </channel>
</rss>

