<?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 Thanks for the info. in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755449#M10936</link>
    <description>&lt;P&gt;Thanks for the info.&lt;/P&gt;

&lt;P&gt;I would also find the warning flags useful, especially the kind conversion warning. Every now and then I have to hunt down the reason why our calculations loose precision. Sometimes this is because a REAL(4) has found its way into an expression of REAL(8)s, other times the reason is more subtle. I think the warning flag could save me a lot of time in these situations.&lt;/P&gt;

&lt;P&gt;Øyvind&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jan 2016 09:12:11 GMT</pubDate>
    <dc:creator>Øyvind_J_</dc:creator>
    <dc:date>2016-01-29T09:12:11Z</dc:date>
    <item>
      <title>warning on implicit type conversion</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755439#M10926</link>
      <description>Dear all,&lt;BR /&gt; this is maybe an obvious question, but I can't find the answer. Is&lt;BR /&gt;there an option in ifort to issue a warning on implicit type&lt;BR /&gt;conversions? I am mostly interested in REAL to DOUBLE PRECISION and&lt;BR /&gt;INTEGER to REAL conversions (as -Wconversion in gfortran).&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt; Marco&lt;BR /&gt;</description>
      <pubDate>Tue, 12 May 2009 10:55:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755439#M10926</guid>
      <dc:creator>MR</dc:creator>
      <dc:date>2009-05-12T10:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: warning on implicit type conversion</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755440#M10927</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Intel Fortran does not have such an option, but I think it would be a good idea. I'll pass this on as a feature request.&lt;BR /&gt;</description>
      <pubDate>Tue, 12 May 2009 12:59:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755440#M10927</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-05-12T12:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: warning on implicit type conversion</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755441#M10928</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A 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; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Intel Fortran does not have such an option, but I think it would be a good idea. I'll pass this on as a feature request.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Steve,&lt;BR /&gt;&lt;BR /&gt;If (when) they look at adding the warning for implicit conversions, have them add an option or level number to detect and warn for mixed use of literals. e.g. using a real(4) literal in a real(8) IF statement. Sometimes thows will bite you (and you won't notice the error when looking at the code). Same with DO loop mixed mode variables.&lt;BR /&gt;&lt;BR /&gt;Jim Dempsey&lt;BR /&gt;</description>
      <pubDate>Tue, 12 May 2009 20:44:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755441#M10928</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2009-05-12T20:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: warning on implicit type conversion</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755442#M10929</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Jim,&lt;BR /&gt;&lt;BR /&gt;I did suggest a separate option for warning about implicit kind conversions. I will note that Intel Fortran goes further than the standard requires in performing implicit conversions, such as between LOGICAL and numeric types, and that enabling standards checking will catch such uses.&lt;BR /&gt;</description>
      <pubDate>Wed, 13 May 2009 12:25:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755442#M10929</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-05-13T12:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: warning on implicit type conversion</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755443#M10930</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Steve,&lt;BR /&gt;&lt;BR /&gt;will the standards checking catch&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if(aReal8Var .eq. 1.1)&lt;BR /&gt;&lt;BR /&gt;probably not.&lt;BR /&gt;&lt;BR /&gt;The compiler will generate a REAL(4) constant, load it, then convert to REAL(8)&lt;BR /&gt;&lt;BR /&gt;There are two issues with this, well three issues. 1) This is fine to do this using the standards (not complaining about the standards). 2) non-optimal code is generated, using 1.0_8 will produce optimal code. 3) unexpected results may occure when implicit conversion modifies small parts of the fraction (or to rephrase, generating a fraction not intended due to oversight in not specifying _8 on the literal constant).&lt;BR /&gt;&lt;BR /&gt;I do not expect the standards to be changed. But it would be nice to have the compiler, under direction of option switch,detect and report on this. Same to when generating code paths that produce temporary array descriptors.&lt;BR /&gt;&lt;BR /&gt;Detecting and correcting for these issues (problems) at compile time is much prefered than requiring discovery during debug time.&lt;BR /&gt;&lt;BR /&gt;Jim Dempsey</description>
      <pubDate>Wed, 13 May 2009 20:17:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755443#M10930</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2009-05-13T20:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: warning on implicit type conversion</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755444#M10931</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
No, standards checking won't catch that because it is standard-conforming. I didn't intend to claim that it would. It will catch something like:&lt;BR /&gt;&lt;BR /&gt;if (X) ...&lt;BR /&gt;&lt;BR /&gt;where X is REAL.&lt;BR /&gt;</description>
      <pubDate>Thu, 14 May 2009 13:40:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755444#M10931</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-05-14T13:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: warning on implicit type conversion</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755445#M10932</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;The suggestion was not to catch violations of standards conformance (as this is expected of the compiler).&lt;BR /&gt;&lt;BR /&gt;The suggestion is as a programming aid in isolating standards conforming statements that may produce resultscounter to those intended as well as performance related hints.&lt;BR /&gt;&lt;BR /&gt;if(X .eq. 1) ...&lt;BR /&gt;where X is REAL&lt;BR /&gt;&lt;BR /&gt;A standards conformance compiler will load 1 as an integer, then convert from integer to REAL then test. Not optimal.&lt;BR /&gt;&lt;BR /&gt;if(X .eq. 1.1) ...&lt;BR /&gt;where X is REAL(8)&lt;BR /&gt;&lt;BR /&gt;A standards conformance compiler will load 1.1 as a REAL(4), then convert from REAL(4) to REAL(8) then test. Not optimal and also is not equivilent to&lt;BR /&gt;&lt;BR /&gt;if(X .eq. 1.1_8) ...&lt;BR /&gt;where X is REAL(8)&lt;BR /&gt;&lt;BR /&gt;Since the values being compared are different.&lt;BR /&gt;&lt;BR /&gt;I remember taking a few week walking through code on a converson effort. Had there been an option switch to say report questionable use of mixed variables then the time lost may have been reduced to under a day.&lt;BR /&gt;&lt;BR /&gt;Jim Dempsey&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 May 2009 20:19:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755445#M10932</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2009-05-14T20:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: warning on implicit type conversion</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755446#M10933</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
I got that. There are two different requests here, one to warn on implicit type conversion and one to warn on implicit kind conversion. I have suggested both. My mention of standards checking was to note that the compiler can detect some kinds of implicit type conversion that are non-standard, such as real to logical.&lt;BR /&gt;</description>
      <pubDate>Thu, 14 May 2009 20:24:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755446#M10933</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-05-14T20:24:45Z</dc:date>
    </item>
    <item>
      <title>Quote:Steve Lionel (Intel)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755447#M10934</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Steve Lionel (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I got that. There are two different requests here, one to warn on implicit type conversion and one to warn on implicit kind conversion. I have suggested both. [...]&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;What is the status of the feature requests? Will these warnings be implemented?&lt;/P&gt;

&lt;P&gt;Øyvind&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 12:19:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755447#M10934</guid>
      <dc:creator>Øyvind_J_</dc:creator>
      <dc:date>2016-01-21T12:19:38Z</dc:date>
    </item>
    <item>
      <title>This suggestion is not</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755448#M10935</link>
      <description>&lt;P&gt;This suggestion is not currently scheduled for implementation. It may happen in the future.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 15:31:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755448#M10935</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2016-01-21T15:31:01Z</dc:date>
    </item>
    <item>
      <title>Thanks for the info.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755449#M10936</link>
      <description>&lt;P&gt;Thanks for the info.&lt;/P&gt;

&lt;P&gt;I would also find the warning flags useful, especially the kind conversion warning. Every now and then I have to hunt down the reason why our calculations loose precision. Sometimes this is because a REAL(4) has found its way into an expression of REAL(8)s, other times the reason is more subtle. I think the warning flag could save me a lot of time in these situations.&lt;/P&gt;

&lt;P&gt;Øyvind&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2016 09:12:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755449#M10936</guid>
      <dc:creator>Øyvind_J_</dc:creator>
      <dc:date>2016-01-29T09:12:11Z</dc:date>
    </item>
    <item>
      <title>Would you want this warning</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755450#M10937</link>
      <description>&lt;P&gt;Would you want this warning on by default or would it be ok if it were optional? My guess is that if we turned it on by default, the torches and pitchforks would be at our door in short order.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2016 15:25:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755450#M10937</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2016-01-29T15:25:34Z</dc:date>
    </item>
    <item>
      <title>For me, an option would be</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755451#M10938</link>
      <description>&lt;P&gt;For me, an option would be best. Together with adding&lt;/P&gt;

&lt;P&gt;!DIR$ OPTIONS /WARN=[NO]PROMOTION&lt;/P&gt;

&lt;P&gt;Or something like that.&lt;/P&gt;

&lt;P&gt;Another related option that might be handy is when a literal is expressed to significantly higher precision than that will be used.&lt;/P&gt;

&lt;P&gt;An example of this is using a REAL(4) literal for PI containing 20 decimal places.&lt;/P&gt;

&lt;P&gt;Essentially what is being asked of the compiler is to have an option that will produce warnings whenever the code generated appears to be in conflict to how the code was written. (as subjective as this is)&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2016 16:42:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/warning-on-implicit-type-conversion/m-p/755451#M10938</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2016-01-29T16:42:32Z</dc:date>
    </item>
  </channel>
</rss>

