<?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 Fortran suspected bug in array constructor in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-suspected-bug-in-array-constructor/m-p/748801#M5891</link>
    <description>&lt;P&gt;Thank you reporting this defect, John. It appears HUGE used in an array constructor returns an incorrect value. It does appear to function correctly in uses outside the array constructor, one which you showed. I reported this to Development (see internal tracking # below) and will update with new information as I learn it.&lt;/P&gt;

&lt;P&gt;(Internal tracking id: DPD200159466)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;(Resolution Update on 9/30/2012): &lt;/STRONG&gt;This issue is resolved in the &lt;STRONG&gt;Intel® Fortran Compiler XE 2013 &lt;/STRONG&gt;release (2013.0.079 – Linux).&lt;/P&gt;</description>
    <pubDate>Tue, 24 Aug 2010 08:49:00 GMT</pubDate>
    <dc:creator>Kevin_D_Intel</dc:creator>
    <dc:date>2010-08-24T08:49:00Z</dc:date>
    <item>
      <title>Fortran suspected bug in array constructor</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-suspected-bug-in-array-constructor/m-p/748800#M5890</link>
      <description>This program constructs an array of integer(8) numbers, warns that there is an out-of-range integer(4) value in it, and prints a wrong answer. There seems to be a bug in integer(8) array construction, as the two print statements in the program should have given the same output, and the one that doesn't construct an array is right. Evidence:&lt;BR /&gt;&lt;BR /&gt;rimu[~]$ cat testbitsize.f90&lt;BR /&gt;print *, (/bit_size(1_8),huge(1_8)/)&lt;BR /&gt;print *, bit_size(1_8),huge(1_8)&lt;BR /&gt;end&lt;BR /&gt;rimu[~]$ ifort -V testbitsize.f90&lt;BR /&gt;Intel Fortran Compiler Professional for applications running on IA-32,&lt;BR /&gt;Version 11.1 Build 20090630 Package ID: l_cprof_p_11.1.046&lt;BR /&gt;Copyright (C) 1985-2009 Intel Corporation. All rights reserved.&lt;BR /&gt;FOR NON-COMMERCIAL USE ONLY&lt;BR /&gt;&lt;BR /&gt;Intel Fortran 11.1-2536&lt;BR /&gt;testbitsize.f90(1): warning #6384: The INTEGER(KIND=4) value is&lt;BR /&gt;out-of-range.&lt;BR /&gt;print *, (/bit_size(1_8),huge(1_8)/)&lt;BR /&gt;-------------------------^&lt;BR /&gt;GNU ld version 2.17.50.0.6-14.el5 20061020&lt;BR /&gt;rimu[~]$ ./a.out&lt;BR /&gt; 64 -1&lt;BR /&gt; 64 9223372036854775807&lt;BR /&gt;rimu[~]$&lt;BR /&gt;&lt;BR /&gt;-- John Harper&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Aug 2010 22:05:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-suspected-bug-in-array-constructor/m-p/748800#M5890</guid>
      <dc:creator>john_harper</dc:creator>
      <dc:date>2010-08-23T22:05:12Z</dc:date>
    </item>
    <item>
      <title>Fortran suspected bug in array constructor</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-suspected-bug-in-array-constructor/m-p/748801#M5891</link>
      <description>&lt;P&gt;Thank you reporting this defect, John. It appears HUGE used in an array constructor returns an incorrect value. It does appear to function correctly in uses outside the array constructor, one which you showed. I reported this to Development (see internal tracking # below) and will update with new information as I learn it.&lt;/P&gt;

&lt;P&gt;(Internal tracking id: DPD200159466)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;(Resolution Update on 9/30/2012): &lt;/STRONG&gt;This issue is resolved in the &lt;STRONG&gt;Intel® Fortran Compiler XE 2013 &lt;/STRONG&gt;release (2013.0.079 – Linux).&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2010 08:49:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-suspected-bug-in-array-constructor/m-p/748801#M5891</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2010-08-24T08:49:00Z</dc:date>
    </item>
    <item>
      <title>Fortran suspected bug in array constructor</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-suspected-bug-in-array-constructor/m-p/748802#M5892</link>
      <description>I do not think this is a bug.&lt;BR /&gt;&lt;BR /&gt;bit_size(1_8) returns an integer (INT4), huge(1_8) returns an INT8.&lt;BR /&gt;(/val1,val2/) now has two different types&lt;BR /&gt;&lt;BR /&gt;What would you expect for&lt;BR /&gt;&lt;BR /&gt; print*,(/1,2.3,'abc'/)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Try&lt;BR /&gt;&lt;BR /&gt;print *, (/INT8(bit_size(1_8)),huge(1_8)/) ! should work&lt;BR /&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;BR /&gt;print *, (/INT8(bit_size(1_8)),INT8(huge(1_8))/) ! explicit of what you want&lt;BR /&gt;&lt;BR /&gt;Jim Dempsey</description>
      <pubDate>Tue, 24 Aug 2010 19:55:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-suspected-bug-in-array-constructor/m-p/748802#M5892</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2010-08-24T19:55:01Z</dc:date>
    </item>
    <item>
      <title>Fortran suspected bug in array constructor</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-suspected-bug-in-array-constructor/m-p/748803#M5893</link>
      <description>Jim, &lt;A href="http://j3-fortran.org/doc/2003_Committee_Draft/04-007.pdf"&gt;the draft of the F2003 standard&lt;/A&gt; states in article 13.7.16 that the function &lt;I&gt;bit_size&lt;/I&gt; returns an integer of the same kind as its integer argument. Therefore, the OP's constructor does not contain heterogeneous items.&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Aug 2010 20:17:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-suspected-bug-in-array-constructor/m-p/748803#M5893</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-08-24T20:17:40Z</dc:date>
    </item>
    <item>
      <title>Fortran suspected bug in array constructor</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-suspected-bug-in-array-constructor/m-p/748804#M5894</link>
      <description>&lt;DIV id="tiny_quote"&gt;&lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A jquery1282848399026="63" rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=9662" href="https://community.intel.com/en-us/profile/9662/" class="basic"&gt;mecej4&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="background-color: #e5e5e5; margin-left: 2px; margin-right: 2px; border: 1px inset; padding: 5px;"&gt;&lt;I&gt;Jim, &lt;A href="http://j3-fortran.org/doc/2003_Committee_Draft/04-007.pdf"&gt;the draft of the F2003 standard&lt;/A&gt; states in article 13.7.16 that the function &lt;I&gt;bit_size&lt;/I&gt; returns an integer of the same kind as its integer argument. Therefore, the OP's constructor does not contain heterogeneous items.&lt;BR /&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Good, then this would seem to indicate that the error may be in "bit_size" returning integer and not integer of same kind as integer argument.&lt;BR /&gt;&lt;BR /&gt;Jim&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2010 18:48:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-suspected-bug-in-array-constructor/m-p/748804#M5894</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2010-08-26T18:48:37Z</dc:date>
    </item>
    <item>
      <title>Fortran suspected bug in array constructor</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-suspected-bug-in-array-constructor/m-p/748805#M5895</link>
      <description>Just ran a test, bit_size(bit_size(1_8)) == 64&lt;BR /&gt;&lt;BR /&gt;Must be something else.&lt;BR /&gt;&lt;BR /&gt;Jim</description>
      <pubDate>Thu, 26 Aug 2010 18:52:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-suspected-bug-in-array-constructor/m-p/748805#M5895</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2010-08-26T18:52:45Z</dc:date>
    </item>
    <item>
      <title>Fortran suspected bug in array constructor</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-suspected-bug-in-array-constructor/m-p/748806#M5896</link>
      <description>&lt;P&gt;Development's assessment is the compiler front-end does not properly recognize the kind parameter in the array constructor.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;(Resolution Update on 9/30/2012): &lt;/STRONG&gt;This issue is resolved in the &lt;STRONG&gt;Intel® Fortran Compiler XE 2013 &lt;/STRONG&gt;release (2013.0.079 – Linux).&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2010 07:46:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-suspected-bug-in-array-constructor/m-p/748806#M5896</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2010-08-27T07:46:00Z</dc:date>
    </item>
  </channel>
</rss>

