<?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 Non-optimal error message for unsupported character kind in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Non-optimal-error-message-for-unsupported-character-kind/m-p/991822#M101789</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;the compiler's error message could by more helpful for the following example:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp; integer, parameter :: iso&amp;nbsp; = SELECTED_CHAR_KIND ("ISO_10646") ! unsupported&lt;BR /&gt;&amp;nbsp; character(kind=iso) , parameter :: c = CHAR (32,KIND=iso)&lt;BR /&gt;&amp;nbsp; print *, 'selected_char_kind ("ISO_10646") =', iso&lt;BR /&gt;end&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;ifort 13.0 produces:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;ifort_character_kinds.f90(2): error #6684: This is an incorrect value for a kind type parameter in this context.&amp;nbsp;&amp;nbsp; [ISO]&lt;BR /&gt;&amp;nbsp; character(kind=iso) , parameter :: c = CHAR (32,KIND=iso)&lt;BR /&gt;-----------------^&lt;BR /&gt;ifort_character_kinds.f90(2): error #6684: This is an incorrect value for a kind type parameter in this context.&lt;BR /&gt;&amp;nbsp; character(kind=iso) , parameter :: c = CHAR (32,KIND=iso)&lt;BR /&gt;-------------------------------------------------------^&lt;BR /&gt;compilation aborted for ifort_character_kinds.f90 (code 1)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;Commenting out the offending line 2 and running the program shows that&lt;/P&gt;
&lt;P&gt;the encoding is not supported and thus iso==-1.&amp;nbsp; It would be helpful if the error message&lt;/P&gt;
&lt;P&gt;would quote the actual invalid value.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Harald&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Sep 2012 21:14:04 GMT</pubDate>
    <dc:creator>Harald</dc:creator>
    <dc:date>2012-09-13T21:14:04Z</dc:date>
    <item>
      <title>Non-optimal error message for unsupported character kind</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Non-optimal-error-message-for-unsupported-character-kind/m-p/991822#M101789</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;the compiler's error message could by more helpful for the following example:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp; integer, parameter :: iso&amp;nbsp; = SELECTED_CHAR_KIND ("ISO_10646") ! unsupported&lt;BR /&gt;&amp;nbsp; character(kind=iso) , parameter :: c = CHAR (32,KIND=iso)&lt;BR /&gt;&amp;nbsp; print *, 'selected_char_kind ("ISO_10646") =', iso&lt;BR /&gt;end&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;ifort 13.0 produces:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;ifort_character_kinds.f90(2): error #6684: This is an incorrect value for a kind type parameter in this context.&amp;nbsp;&amp;nbsp; [ISO]&lt;BR /&gt;&amp;nbsp; character(kind=iso) , parameter :: c = CHAR (32,KIND=iso)&lt;BR /&gt;-----------------^&lt;BR /&gt;ifort_character_kinds.f90(2): error #6684: This is an incorrect value for a kind type parameter in this context.&lt;BR /&gt;&amp;nbsp; character(kind=iso) , parameter :: c = CHAR (32,KIND=iso)&lt;BR /&gt;-------------------------------------------------------^&lt;BR /&gt;compilation aborted for ifort_character_kinds.f90 (code 1)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;Commenting out the offending line 2 and running the program shows that&lt;/P&gt;
&lt;P&gt;the encoding is not supported and thus iso==-1.&amp;nbsp; It would be helpful if the error message&lt;/P&gt;
&lt;P&gt;would quote the actual invalid value.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Harald&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2012 21:14:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Non-optimal-error-message-for-unsupported-character-kind/m-p/991822#M101789</guid>
      <dc:creator>Harald</dc:creator>
      <dc:date>2012-09-13T21:14:04Z</dc:date>
    </item>
    <item>
      <title>Hi Harald</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Non-optimal-error-message-for-unsupported-character-kind/m-p/991823#M101790</link>
      <description>Hi Harald
yes - agree. This should be reported in a better way. I will submit file a case to improve the message. 
Heinz</description>
      <pubDate>Mon, 17 Sep 2012 12:26:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Non-optimal-error-message-for-unsupported-character-kind/m-p/991823#M101790</guid>
      <dc:creator>Heinz_B_Intel</dc:creator>
      <dc:date>2012-09-17T12:26:28Z</dc:date>
    </item>
    <item>
      <title>For tracking purpose:</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Non-optimal-error-message-for-unsupported-character-kind/m-p/991824#M101791</link>
      <description>For tracking purpose: Submitted as case DPD200236373

I will inform you  here as soon as this gets implemented.</description>
      <pubDate>Mon, 17 Sep 2012 13:12:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Non-optimal-error-message-for-unsupported-character-kind/m-p/991824#M101791</guid>
      <dc:creator>Heinz_B_Intel</dc:creator>
      <dc:date>2012-09-17T13:12:30Z</dc:date>
    </item>
    <item>
      <title>Compiler 14.0 now correctly</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Non-optimal-error-message-for-unsupported-character-kind/m-p/991825#M101792</link>
      <description>&lt;P&gt;Compiler 14.0 now correctly displays an error message about the unsupported ISO character type:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; iso_char.f90(1): error #6104: ISO_10646 character type is not yet supported.&amp;nbsp;&amp;nbsp; ['ISO_10646']&lt;/P&gt;
&lt;P&gt;I'm closing this thread.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2013 10:59:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Non-optimal-error-message-for-unsupported-character-kind/m-p/991825#M101792</guid>
      <dc:creator>Heinz_B_Intel</dc:creator>
      <dc:date>2013-09-24T10:59:20Z</dc:date>
    </item>
    <item>
      <title>The compiler shouldn't be</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Non-optimal-error-message-for-unsupported-character-kind/m-p/991826#M101793</link>
      <description>&lt;P&gt;The compiler shouldn't be issuing an error for the SELECTED_CHAR_KIND intrinsic - its behaviour in the face of an unsupported kind is well defined by the standard - it needs to return -1.&amp;nbsp; An error prevents the compiler from being able to execute a conforming program, such as:&lt;/P&gt;
&lt;P&gt;[fortran]&amp;nbsp; INTEGER, PARAMETER :: kind = SELECTED_CHAR_KIND ("ISO_10646")&lt;BR /&gt;&amp;nbsp; IF (kind /= 0) THEN&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRINT "('ISO_10646 characters supported.')"&lt;BR /&gt;&amp;nbsp; ELSE&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRINT "('ISO_10646 characters not supported.')"&lt;BR /&gt;&amp;nbsp; END IF&lt;BR /&gt;END[/fortran]&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2013 20:22:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Non-optimal-error-message-for-unsupported-character-kind/m-p/991826#M101793</guid>
      <dc:creator>IanH</dc:creator>
      <dc:date>2013-09-24T20:22:59Z</dc:date>
    </item>
    <item>
      <title>Ian</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Non-optimal-error-message-for-unsupported-character-kind/m-p/991827#M101794</link>
      <description>&lt;P&gt;Ian&lt;/P&gt;
&lt;P&gt;thanks for the feedback. I will forward to engineering. Our documentation is not clear here either: While it excludes ISO_10646 as input:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Input) Must be scalar and of type default character. Its value must be 'DEFAULT' or 'ASCII'&lt;/P&gt;
&lt;P&gt;it&amp;nbsp;defines the return value as you&amp;nbsp;describe:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The result value is 1 if NAME has the value 'DEFAULT' or 'ASCII'; otherwise, the result value is -1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I agree&amp;nbsp; - we should allow the input and return -1 until it is implemented.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2013 21:24:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Non-optimal-error-message-for-unsupported-character-kind/m-p/991827#M101794</guid>
      <dc:creator>Heinz_B_Intel</dc:creator>
      <dc:date>2013-09-24T21:24:24Z</dc:date>
    </item>
    <item>
      <title>Make it spit out a warning</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Non-optimal-error-message-for-unsupported-character-kind/m-p/991828#M101795</link>
      <description>&lt;P&gt;Make it spit out a warning instead, then everyone is happy.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2013 21:45:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Non-optimal-error-message-for-unsupported-character-kind/m-p/991828#M101795</guid>
      <dc:creator>IanH</dc:creator>
      <dc:date>2013-09-24T21:45:50Z</dc:date>
    </item>
    <item>
      <title>Hi Ian</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Non-optimal-error-message-for-unsupported-character-kind/m-p/991829#M101796</link>
      <description>&lt;P&gt;Hi Ian&lt;/P&gt;
&lt;P&gt;I talked to engineering:&amp;nbsp; There are &amp;nbsp;a&amp;nbsp; few &amp;nbsp;additional issues related to this intrinsics. We will fix them now. I filed a new case DPD200248361 to keep track of&amp;nbsp;this &amp;nbsp;and will&amp;nbsp;add an update here &amp;nbsp;as soon as it got corrected. I requested too to convert the error message to a WARNING&lt;/P&gt;
&lt;P&gt;BTW: In your sample code the comparison should be ( == 1) of ( /= -1)&amp;nbsp; but it is clear what you mean :-)&lt;/P&gt;
&lt;P&gt;Heinz&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2013 13:58:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Non-optimal-error-message-for-unsupported-character-kind/m-p/991829#M101796</guid>
      <dc:creator>Heinz_B_Intel</dc:creator>
      <dc:date>2013-09-25T13:58:37Z</dc:date>
    </item>
  </channel>
</rss>

