<?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:ifx: F_C_STRING does not accept non-default kind for ASIS argument in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-F-C-STRING-does-not-accept-non-default-kind-for-ASIS/m-p/1688115#M175751</link>
    <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/157087"&gt;@Harald1&lt;/a&gt; the fix will be in the next release, 2025.2.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Tobias&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 07 May 2025 10:26:39 GMT</pubDate>
    <dc:creator>TobiasK</dc:creator>
    <dc:date>2025-05-07T10:26:39Z</dc:date>
    <item>
      <title>ifx: F_C_STRING does not accept non-default kind for ASIS argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-F-C-STRING-does-not-accept-non-default-kind-for-ASIS/m-p/1652724#M174722</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;the following program in F2023 conforming but rejected by ifx 2025.0:&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;program p
  use iso_c_binding
  implicit none
  character(kind=c_char,len=*), parameter :: s = "abc"
  print *, f_c_string (s)
  print *, f_c_string (s,.false.)
  print *, f_c_string (s,.true.)
  print *, .false._1, .true._2,.false._4,.true._8
  print *, f_c_string (s,.false._1) ! rejected
  print *, f_c_string (s,.true._2)  ! rejected
  print *, f_c_string (s,.false._4) ! OK
  print *, f_c_string (s,.true._8)  ! rejected
end&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I find:&lt;/P&gt;&lt;LI-CODE lang="none"&gt;% ifx ifx_f_c_string.f90
ifx_f_c_string.f90(9): error #6284: There is no matching specific function for this generic function reference.   [F_C_STRING]
  print *, f_c_string (s,.false._1) ! rejected
-----------^
ifx_f_c_string.f90(10): error #6284: There is no matching specific function for this generic function reference.   [F_C_STRING]
  print *, f_c_string (s,.true._2)  ! rejected
-----------^
ifx_f_c_string.f90(12): error #6284: There is no matching specific function for this generic function reference.   [F_C_STRING]
  print *, f_c_string (s,.true._8)  ! rejected
-----------^
compilation aborted for ifx_f_c_string.f90 (code 1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;F2023:18.2.3.9 has:&lt;/P&gt;&lt;P&gt;ASIS (optional) shall be a logical scalar.&lt;/P&gt;&lt;P&gt;There is no restriction on ASIS being only of default kind.&lt;/P&gt;&lt;P&gt;Furthermore, the handling of ASIS as an optional argument should be such that the following code works:&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;program p
  use iso_c_binding
  implicit none
  character(kind=c_char,len=*), parameter :: s = "abc"
  call sub (.true.)
  call sub (.false.)
  call sub ()
contains
  subroutine sub (asis)
    logical, optional, intent(in) :: asis
    print *, f_c_string (s, asis)
  end
end&lt;/LI-CODE&gt;&lt;P&gt;I get:&lt;/P&gt;&lt;LI-CODE lang="none"&gt;% ifx ifx_f_c_string2.f90 -g -traceback &amp;amp;&amp;amp; ./a.out 
ifx: remark #10440: Note that use of a debug option without any optimization-level option will turnoff most compiler optimizations similar to use of '-O0'
 abc
 abc
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image              PC                Routine            Line        Source             
libpthread-2.31.s  00007F5C7B702910  Unknown               Unknown  Unknown
a.out              0000000000415342  Unknown               Unknown  Unknown
a.out              000000000040426A  sub                        11  ifx_f_c_string2.f90
a.out              00000000004041CE  p                           7  ifx_f_c_string2.f90
a.out              000000000040417D  Unknown               Unknown  Unknown
libc-2.31.so       00007F5C7B52324D  __libc_start_main     Unknown  Unknown
a.out              00000000004040AA  Unknown               Unknown  Unknown&lt;/LI-CODE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Harald&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2024 20:40:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-F-C-STRING-does-not-accept-non-default-kind-for-ASIS/m-p/1652724#M174722</guid>
      <dc:creator>Harald1</dc:creator>
      <dc:date>2024-12-27T20:40:49Z</dc:date>
    </item>
    <item>
      <title>Re:ifx: F_C_STRING does not accept non-default kind for ASIS argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-F-C-STRING-does-not-accept-non-default-kind-for-ASIS/m-p/1653752#M174748</link>
      <description>&lt;P&gt;@&lt;SPAN style="font-size: 14px;"&gt;Harald1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;thank you for reporting this. I escalated it to our development team.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Jan 2025 13:55:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-F-C-STRING-does-not-accept-non-default-kind-for-ASIS/m-p/1653752#M174748</guid>
      <dc:creator>TobiasK</dc:creator>
      <dc:date>2025-01-02T13:55:34Z</dc:date>
    </item>
    <item>
      <title>Re:ifx: F_C_STRING does not accept non-default kind for ASIS argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-F-C-STRING-does-not-accept-non-default-kind-for-ASIS/m-p/1688115#M175751</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/157087"&gt;@Harald1&lt;/a&gt; the fix will be in the next release, 2025.2.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Tobias&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 May 2025 10:26:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-F-C-STRING-does-not-accept-non-default-kind-for-ASIS/m-p/1688115#M175751</guid>
      <dc:creator>TobiasK</dc:creator>
      <dc:date>2025-05-07T10:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re:ifx: F_C_STRING does not accept non-default kind for ASIS argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-F-C-STRING-does-not-accept-non-default-kind-for-ASIS/m-p/1700191#M176154</link>
      <description>&lt;P&gt;It is not fixed here:&lt;/P&gt;&lt;LI-CODE lang="none"&gt;ifx -what ifx_f_c_string.f90
 Intel(R) Fortran 25.0-1485
ifx_f_c_string.f90(9): error #6284: There is no matching specific function for this generic function reference.   [F_C_STRING]
  print *, f_c_string (s,.false._1) ! rejected
-----------^
ifx_f_c_string.f90(10): error #6284: There is no matching specific function for this generic function reference.   [F_C_STRING]
  print *, f_c_string (s,.true._2)  ! rejected
-----------^
ifx_f_c_string.f90(12): error #6284: There is no matching specific function for this generic function reference.   [F_C_STRING]
  print *, f_c_string (s,.true._8)  ! rejected
-----------^
compilation aborted for ifx_f_c_string.f90 (code 1)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 27 Jun 2025 17:48:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-F-C-STRING-does-not-accept-non-default-kind-for-ASIS/m-p/1700191#M176154</guid>
      <dc:creator>Harald1</dc:creator>
      <dc:date>2025-06-27T17:48:15Z</dc:date>
    </item>
  </channel>
</rss>

