<?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 List of compiler errors? in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765657#M19987</link>
    <description>&lt;PRE&gt;[fortran]program ishft_test
! ifort prints 4 on the first line and 8 on the second.
! To be sure what you get with BOZ literals, use them
! in a standard-conforming way.
! gfortran prints out 4 and 16, BTW.
   implicit none
   integer(4) i
   integer(8) shift

   i = 1
   shift = 7
   write(*,*) kind(ishft(i,shift))
   write(*,*) kind(ishft(Z'0000000000000001',shift))
end program ishft_test
[/fortran]&lt;/PRE&gt;</description>
    <pubDate>Thu, 01 Sep 2011 18:30:29 GMT</pubDate>
    <dc:creator>JVanB</dc:creator>
    <dc:date>2011-09-01T18:30:29Z</dc:date>
    <item>
      <title>List of compiler errors?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765648#M19978</link>
      <description>If there is a list/file of compiler errors, I probably should know where to find them but I don't. And, V12 is not giving this error but some of my developers haven't upgraded -- still at 11.1&lt;BR /&gt;&lt;BR /&gt;error #6362: The data types of the argument(s) are invalid.  [ISHFT]&lt;BR /&gt;&lt;BR /&gt;Any help or suggestions for them to get around this?&lt;BR /&gt;&lt;BR /&gt;Linda&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Aug 2011 14:29:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765648#M19978</guid>
      <dc:creator>lklawrie</dc:creator>
      <dc:date>2011-08-25T14:29:21Z</dc:date>
    </item>
    <item>
      <title>List of compiler errors?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765649#M19979</link>
      <description>We have a knowledge base article on each error message, though only some of them have detailed explanations.&lt;BR /&gt;&lt;BR /&gt;For this one, there is a call to the ISHFT intrinsic but the compiler thinks that one or more of the arguments to the intrinsic have the wrong data type. The full error message might point to the particular argument in question. If 12.0 is not giving an error then perhaps we fixed a bug where the compiler got confused by something. Can you show me the call to ISHFT and the full declarations of each of the arguments?</description>
      <pubDate>Thu, 25 Aug 2011 14:55:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765649#M19979</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-08-25T14:55:58Z</dc:date>
    </item>
    <item>
      <title>List of compiler errors?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765650#M19980</link>
      <description>Linda,&lt;BR /&gt;&lt;BR /&gt;Thanks for providing me with the source.&lt;BR /&gt;&lt;BR /&gt;The problem has to do with this bit:&lt;BR /&gt;&lt;BR /&gt;ISHFT(z'0000000000000001', Grid_Shift)&lt;BR /&gt;&lt;BR /&gt;Where Grid_Shift is declared as INTEGER(8). The problem is that the hex constant here is being treated as INTEGER(4). It is an extension to have a "BOZ" constant as an argument to ISHFT (or most anywhere except in a DATA statement, with an exception for the INT and REAL intrinsics.) In this context, we allow it but treat the value as "default integer" unless the value would not fit in a default integer, but here it does.&lt;BR /&gt;&lt;BR /&gt;Nevertheless, calling ISHFT with an INTEGER(4) first argument and INTEGER(8) second argument is ok - the compiler should "promote" the smaller argument to the larger kind. We had a bug in 11.1 where this was not working for BOZ constants and fixed that in 12.0.&lt;BR /&gt;&lt;BR /&gt;The workaround is to change the code to read:&lt;BR /&gt;&lt;BR /&gt;ISHFT(INT(z'0000000000000001'), Grid_Shift)&lt;BR /&gt;&lt;BR /&gt;This not only allows 11.1 to compile it but also makes the code standard-conforming.</description>
      <pubDate>Thu, 25 Aug 2011 18:00:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765650#M19980</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-08-25T18:00:04Z</dc:date>
    </item>
    <item>
      <title>List of compiler errors?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765651#M19981</link>
      <description>&lt;DIV id="tiny_quote"&gt;
                &lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=336209" class="basic" 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 inset; margin-left: 2px; margin-right: 2px;"&gt;&lt;I&gt;&lt;BR /&gt;The workaround is to change the code to read:&lt;BR /&gt;&lt;BR /&gt;ISHFT(INT(z'0000000000000001'), Grid_Shift)&lt;BR /&gt;&lt;BR /&gt;This not only allows 11.1 to compile it but also makes the code standard-conforming.&lt;BR /&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may allow the code to compile but significantly changes the results.&lt;/P&gt;&lt;P&gt;Did you mean to say INT(&lt;I&gt;z'0000000000000001'&lt;/I&gt;,8)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linda&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2011 20:08:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765651#M19981</guid>
      <dc:creator>lklawrie</dc:creator>
      <dc:date>2011-08-31T20:08:27Z</dc:date>
    </item>
    <item>
      <title>List of compiler errors?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765652#M19982</link>
      <description>Well, that works too.</description>
      <pubDate>Wed, 31 Aug 2011 23:47:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765652#M19982</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-08-31T23:47:44Z</dc:date>
    </item>
    <item>
      <title>List of compiler errors?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765653#M19983</link>
      <description>I thought about that after I sent it -- INT should be generic and not change the two results, yes?&lt;BR /&gt;&lt;BR /&gt;Is this a defect in the compiler? I know -- it's on the edge of usual Fortran.&lt;BR /&gt;&lt;BR /&gt;Linda&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Sep 2011 13:01:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765653#M19983</guid>
      <dc:creator>lklawrie</dc:creator>
      <dc:date>2011-09-01T13:01:35Z</dc:date>
    </item>
    <item>
      <title>List of compiler errors?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765654#M19984</link>
      <description>INT returns default integer without the KIND argument. As I mentioned, the compiler has an extension where it will promote kinds if you mix them in an intrinsc - it was a bug earlier that this did not work for BOZ constants.&lt;BR /&gt;&lt;BR /&gt;However, now that I look at the standard, ISHFT does not require the kinds to be the same - I guess the bug was that the compiler was not properly handle BOZ constants there. It is non-standard to have a BOZ constant there, so I suggested the INT. There is no difference in the values, the result of the ISHFT with the INTEGER(4) first argument and INTEGER(8) second is INTEGER(8).</description>
      <pubDate>Thu, 01 Sep 2011 14:27:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765654#M19984</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-09-01T14:27:52Z</dc:date>
    </item>
    <item>
      <title>List of compiler errors?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765655#M19985</link>
      <description>Well, something sure made a difference in my results. And when I removed that INT, it went back to good.&lt;BR /&gt;&lt;BR /&gt;I will have to look deeper when I have time.&lt;BR /&gt;&lt;BR /&gt;Linda&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Sep 2011 14:51:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765655#M19985</guid>
      <dc:creator>lklawrie</dc:creator>
      <dc:date>2011-09-01T14:51:37Z</dc:date>
    </item>
    <item>
      <title>List of compiler errors?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765656#M19986</link>
      <description>I did an experiment and indeed you need the KIND=8 in the INT. If you shift more than 31 without that, the result is zero. I guess the shift is done first and then the result converted - not exactly what I would expect, but it's understandable.</description>
      <pubDate>Thu, 01 Sep 2011 15:53:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765656#M19986</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-09-01T15:53:53Z</dc:date>
    </item>
    <item>
      <title>List of compiler errors?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765657#M19987</link>
      <description>&lt;PRE&gt;[fortran]program ishft_test
! ifort prints 4 on the first line and 8 on the second.
! To be sure what you get with BOZ literals, use them
! in a standard-conforming way.
! gfortran prints out 4 and 16, BTW.
   implicit none
   integer(4) i
   integer(8) shift

   i = 1
   shift = 7
   write(*,*) kind(ishft(i,shift))
   write(*,*) kind(ishft(Z'0000000000000001',shift))
end program ishft_test
[/fortran]&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Sep 2011 18:30:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765657#M19987</guid>
      <dc:creator>JVanB</dc:creator>
      <dc:date>2011-09-01T18:30:29Z</dc:date>
    </item>
    <item>
      <title>List of compiler errors?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765658#M19988</link>
      <description>Yes, I had written much the same sort of program and got the same results. (gfortran prints 16? that seems a bit odd for this case.) More interesting is what the value of the ishft is when shift is, say, 34.</description>
      <pubDate>Thu, 01 Sep 2011 19:17:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/List-of-compiler-errors/m-p/765658#M19988</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2011-09-01T19:17:14Z</dc:date>
    </item>
  </channel>
</rss>

