<?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 Re: Possible Fortran 8.2 compiler bug on Itanium in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5731847#M36896</link>
    <description>The report of V7.6 is correct as the F77 compiler is a completely different image. F90$main is the F90 compiler while FORT$main is the F77 compiler.&lt;BR /&gt;&lt;BR /&gt;Dan</description>
    <pubDate>Fri, 20 Jul 2012 10:35:09 GMT</pubDate>
    <dc:creator>abrsvc</dc:creator>
    <dc:date>2012-07-20T10:35:09Z</dc:date>
    <item>
      <title>Possible Fortran 8.2 compiler bug on Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5731401#M36890</link>
      <description>&lt;P&gt;HIi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am helping a customer port their Fortran applications from OpenVMS Alpha V7.2-2 to OpenVMS IA64 V8.4.&lt;/P&gt;&lt;P&gt;The code (mostly) compiles cleanly but some programs are giving wrong results.&amp;nbsp; For example, when compiling and running the attached file (TMINUSPLUS.FOR) we get wrong values displayed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$ sho sym fortran
%DCL-W-UNDSYM, undefined symbol - check validity and spelling
$ fortran tminusplus
$ link tminusplus
$ run tminusplus
         18
         20
         20
         18
         20
         20
$&lt;/PRE&gt;&lt;P&gt;The value being output by the program should be '20' on every line; '18' is incorrect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like the compiler is evaluatiing the expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = FILE.INFO.SEG(1).END - FILE.INFO.SEG(1).START + 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as if it was written&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = FILE.INFO.SEG(1).END - (FILE.INFO.SEG(1).START + 1)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and in fact the erroneous instruction, as seen in the Debugger, is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sub&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r9 = r9, r10, 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The trailing ", 1" has the effect of subtracting 1 from the result, whereas the expression requires 1 be added to the result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried both the Fortran 8.2 compiler and the 8.2 ECO1 compiler and both give the same results.&lt;/P&gt;&lt;P&gt;I am going to try to report this to HP.&amp;nbsp; If anyone has seen this before, and/or knows a workaround (which hopefully doesn't require extensive code changes!) I'd like to know about it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jeremy Begg&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2012 03:16:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5731401#M36890</guid>
      <dc:creator>Jeremy Begg</dc:creator>
      <dc:date>2012-07-20T03:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Fortran 8.2 compiler bug on Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5731471#M36891</link>
      <description />
      <pubDate>Fri, 20 Jul 2012 04:50:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5731471#M36891</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2012-07-20T04:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Fortran 8.2 compiler bug on Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5731529#M36892</link>
      <description>Thanks for the info, Steven. HP has acknowledged receipt of my support request so we'll see what happens.</description>
      <pubDate>Fri, 20 Jul 2012 06:14:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5731529#M36892</guid>
      <dc:creator>Jeremy Begg</dc:creator>
      <dc:date>2012-07-20T06:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Fortran 8.2 compiler bug on Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5731653#M36893</link>
      <description>&lt;P&gt;There is a newer fortran version available:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ fortran/version&lt;BR /&gt;HP Fortran V8.2-104953-50M2N&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eberhard&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2012 07:26:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5731653#M36893</guid>
      <dc:creator>Eberhard Heuser</dc:creator>
      <dc:date>2012-07-20T07:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Fortran 8.2 compiler bug on Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5731659#M36894</link>
      <description>&lt;P&gt;Hi Eberhad,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's the Fortran 8.2 ECO1 release, which gives the same results.&amp;nbsp; In fact that's where we first noticed it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2012 07:37:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5731659#M36894</guid>
      <dc:creator>Jeremy Begg</dc:creator>
      <dc:date>2012-07-20T07:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Fortran 8.2 compiler bug on Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5731699#M36895</link>
      <description>&lt;P&gt;I tried this on alpha (8.4)&amp;nbsp;with the same result (error)&lt;/P&gt;&lt;P&gt;$fortran/vers&lt;/P&gt;&lt;P&gt;Hp Fortran v8.2-104679-48H9K&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use the old f77 compiler (fortran/old) the result is correct (all 20s)&lt;/P&gt;&lt;P&gt;$fortran/old/version&lt;/P&gt;&lt;P&gt;HP Fortran 77 V7.6-198-48H9K (this version reports 7.6 while it really is the 8.2 version, another bug)&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2012 08:07:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5731699#M36895</guid>
      <dc:creator>Fekko Stubbe</dc:creator>
      <dc:date>2012-07-20T08:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Fortran 8.2 compiler bug on Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5731847#M36896</link>
      <description>The report of V7.6 is correct as the F77 compiler is a completely different image. F90$main is the F90 compiler while FORT$main is the F77 compiler.&lt;BR /&gt;&lt;BR /&gt;Dan</description>
      <pubDate>Fri, 20 Jul 2012 10:35:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5731847#M36896</guid>
      <dc:creator>abrsvc</dc:creator>
      <dc:date>2012-07-20T10:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Fortran 8.2 compiler bug on Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5732093#M36897</link>
      <description>&lt;P&gt;You could be right, but the image is installed from the fortran 8.2 kit. This kit installs both the fort$main as the f90$main. I find it highly &amp;nbsp;confusing. If&amp;nbsp;they wat to distribute different version for the f90 and the f77 compiler they should have deliverd 2 kits.&amp;nbsp;As far aas I rmember&amp;nbsp;&amp;nbsp;the 8.1 kit distributes an 8.1 version for both compilers.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2012 13:28:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5732093#M36897</guid>
      <dc:creator>Fekko Stubbe</dc:creator>
      <dc:date>2012-07-20T13:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Fortran 8.2 compiler bug on Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5732307#M36898</link>
      <description>&lt;P&gt;It worked correctly under the Fortran 95 compiler on a much older Alpha version - running OpenVMS Alpha V7.3-2 and Fortran V7.5-1961-48BCD&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2012 15:57:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5732307#M36898</guid>
      <dc:creator>Mike Kier</dc:creator>
      <dc:date>2012-07-20T15:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Fortran 8.2 compiler bug on Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5732577#M36899</link>
      <description>&lt;P&gt;This was fixed recently. Please contact your Support Centre for a remedial side image.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2012 21:48:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5732577#M36899</guid>
      <dc:creator>John Brodribb</dc:creator>
      <dc:date>2012-07-20T21:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Possible Fortran 8.2 compiler bug on Itanium</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5736437#M36900</link>
      <description>&lt;P&gt;Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If only all "I've found a compiler bug" reports were so well researched, characterised and documented with such a simple and unarguable reproducer! :-)&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2012 21:58:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/possible-fortran-8-2-compiler-bug-on-itanium/m-p/5736437#M36900</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2012-07-23T21:58:30Z</dc:date>
    </item>
  </channel>
</rss>

