<?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 Problem with procedure pointers: matching arguments in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836413#M55301</link>
    <description>Hello Wendy,&lt;BR /&gt;&lt;BR /&gt;yes, I know and that is the reason I posted this example. (Robert Corbett from Sun assures me in the c.l.f thread I started on this subject that it is legal. But whether it is useful, I am not sure.) Anyway the main&lt;BR /&gt;point is indeed the compiler error, not the code.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Arjen</description>
    <pubDate>Thu, 26 Aug 2010 06:34:07 GMT</pubDate>
    <dc:creator>Arjen_Markus</dc:creator>
    <dc:date>2010-08-26T06:34:07Z</dc:date>
    <item>
      <title>Problem with procedure pointers: matching arguments</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836404#M55292</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to use procedure pointers to makea program more flexible, but I ran into a &lt;BR /&gt;nasty little compiler error. The following program causes the compiler to complain about&lt;BR /&gt;the pointer assignment:&lt;BR /&gt;&lt;BR /&gt;error #8178: The procedure pointer and the procedure target must have matching arguments.&lt;BR /&gt;&lt;BR /&gt;If I put the code in the module "implementations" into the module "abstract", the error goes &lt;BR /&gt;away.&lt;BR /&gt;&lt;BR /&gt;Any suggestions (besides creating a humongous module)?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Arjen&lt;BR /&gt;&lt;BR /&gt;----&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;! chk_abstract.f90 --&lt;/P&gt;&lt;P&gt;! Investigate a problem with abstract interfaces&lt;/P&gt;&lt;P&gt;! and procedure pointers&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;module implementations&lt;/P&gt;&lt;P&gt;implicit none&lt;/P&gt;&lt;P&gt;abstract interface&lt;/P&gt;&lt;P&gt;subroutine zfunc_evaluation( param_value, zvalue )&lt;/P&gt;&lt;P&gt;real, dimension(:), intent(in) :: param_value&lt;/P&gt;&lt;P&gt;real, intent(out) :: zvalue&lt;/P&gt;&lt;P&gt;end subroutine&lt;/P&gt;&lt;P&gt;end interface&lt;/P&gt;&lt;P&gt;contains&lt;/P&gt;&lt;P&gt;subroutine zfunc( param, zvalue )&lt;/P&gt;&lt;P&gt;real, dimension(:), intent(in) :: param&lt;/P&gt;&lt;P&gt;real, intent(out) :: zvalue&lt;/P&gt;&lt;P&gt;zvalue = param(2) - param(1)&lt;/P&gt;&lt;P&gt;end subroutine&lt;/P&gt;&lt;P&gt;end module implementations&lt;/P&gt;&lt;P&gt;module abstract&lt;/P&gt;&lt;P&gt;use implementations&lt;/P&gt;&lt;P&gt;contains&lt;/P&gt;&lt;P&gt;subroutine select( name, implementation )&lt;/P&gt;&lt;P&gt;character(len=*) :: name&lt;/P&gt;&lt;P&gt;procedure(zfunc_evaluation), pointer :: implementation&lt;/P&gt;&lt;P&gt;select case( name )&lt;/P&gt;&lt;P&gt;case ( 'Z' )&lt;/P&gt;&lt;P&gt;implementation =&amp;gt; zfunc&lt;/P&gt;&lt;P&gt;case default&lt;/P&gt;&lt;P&gt;write(*,*) 'Unknown implementation: ', trim(name)&lt;/P&gt;&lt;P&gt;stop&lt;/P&gt;&lt;P&gt;end select&lt;/P&gt;&lt;P&gt;end subroutine select&lt;/P&gt;&lt;P&gt;end module&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2010 06:56:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836404#M55292</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2010-08-20T06:56:25Z</dc:date>
    </item>
    <item>
      <title>Problem with procedure pointers: matching arguments</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836405#M55293</link>
      <description>Adding the following lines to round out your code into a complete program&lt;BR /&gt;&lt;PRE&gt;[fortran]program tst
use abstract
procedure(zfunc_evaluation), pointer :: impl
impl =&amp;gt; zfunc
call select('Z', impl)
call select('Any rose ', impl)
end program tst[/fortran]&lt;/PRE&gt; and compiling, I found that the program runs as expected, using 11.1.069 (Windows) and 11.1.072 (Linux). &lt;BR /&gt;&lt;BR /&gt;Which version of the compiler did you use?</description>
      <pubDate>Fri, 20 Aug 2010 12:32:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836405#M55293</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-08-20T12:32:51Z</dc:date>
    </item>
    <item>
      <title>Problem with procedure pointers: matching arguments</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836406#M55294</link>
      <description>I am using Intel Fortran 11.1.054 (still - my sysadmin is hunting down the newer version for me).&lt;BR /&gt;&lt;BR /&gt;I take it that the problem has been solved then.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Arjen</description>
      <pubDate>Fri, 20 Aug 2010 12:37:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836406#M55294</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2010-08-20T12:37:01Z</dc:date>
    </item>
    <item>
      <title>Problem with procedure pointers: matching arguments</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836407#M55295</link>
      <description>Some relevant fixes we included between these releases and it sounds like it is fixed in 11.1. Let us know if you still see it after upgrading?&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;Wendy&lt;/P&gt;&lt;P&gt;&lt;A href="http://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/announcement/241/"&gt;Attaching or including files in a post&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2010 23:58:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836407#M55295</guid>
      <dc:creator>Wendy_Doerner__Intel</dc:creator>
      <dc:date>2010-08-20T23:58:26Z</dc:date>
    </item>
    <item>
      <title>Problem with procedure pointers: matching arguments</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836408#M55296</link>
      <description>I will do that.&lt;BR /&gt;&lt;BR /&gt;Meanwhile here is another nasty problem:&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;module computation_data&lt;/P&gt;&lt;P&gt;implicit none&lt;/P&gt;&lt;P&gt;type computation_method&lt;/P&gt;&lt;P&gt;character(len=40) :: name ! Name of the mechanism&lt;/P&gt;&lt;P&gt;procedure(compute_routine), pointer, nopass :: compute ! Pointer to the compute subroutine&lt;/P&gt;&lt;P&gt;end type&lt;/P&gt;&lt;P&gt;abstract interface&lt;/P&gt;&lt;P&gt;subroutine compute_routine( param_value, zfunc, probability )&lt;/P&gt;&lt;P&gt;real, dimension(:), intent(in) :: param_value&lt;/P&gt;&lt;P&gt;procedure(compute_routine) :: zfunc&lt;/P&gt;&lt;P&gt;real, intent(in) :: probability&lt;/P&gt;&lt;P&gt;end subroutine&lt;/P&gt;&lt;P&gt;end interface&lt;/P&gt;&lt;P&gt;end module computation_data&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The error message I get with 11.1_054 is:&lt;BR /&gt;&lt;BR /&gt;fit_lookup: Line_seq_number 000000000 was not found&lt;BR /&gt;forcom: Fatal: There has been an internal compiler error (C000005)&lt;BR /&gt;&lt;BR /&gt;I had to stare very hard at the code to find the problem (you may see it rightaway). When I fix it, all&lt;BR /&gt;is fine;)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Arjen&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2010 08:21:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836408#M55296</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2010-08-23T08:21:59Z</dc:date>
    </item>
    <item>
      <title>Problem with procedure pointers: matching arguments</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836409#M55297</link>
      <description>&lt;P&gt;The original problem is solved with 11.1_065. So now I can proceed with this program.&lt;BR /&gt;(The nasty problem I reported yesterday still exists though)&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arjen&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2010 08:30:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836409#M55297</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2010-08-24T08:30:24Z</dc:date>
    </item>
    <item>
      <title>Problem with procedure pointers: matching arguments</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836410#M55298</link>
      <description>Arjen,&lt;BR /&gt;&lt;BR /&gt;Thanks for the internal compiler error report. I have reproduced and reported to engineering with number: DPD200159494. I will update this thread when we have a compiler which resolves the error or a workaround for it.&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;Wendy&lt;/P&gt;&lt;P&gt;&lt;A href="http://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/announcement/241/"&gt;Attaching or including files in a post&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2010 21:15:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836410#M55298</guid>
      <dc:creator>Wendy_Doerner__Intel</dc:creator>
      <dc:date>2010-08-24T21:15:18Z</dc:date>
    </item>
    <item>
      <title>Problem with procedure pointers: matching arguments</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836411#M55299</link>
      <description>You're welcome. Mind you, I am not sure if the code as such is legal (I have my doubts it can be given a consistent interpretation, given the self-reference). It had me puzzled for a long while.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Arjen</description>
      <pubDate>Wed, 25 Aug 2010 06:36:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836411#M55299</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2010-08-25T06:36:31Z</dc:date>
    </item>
    <item>
      <title>Problem with procedure pointers: matching arguments</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836412#M55300</link>
      <description>Arjen,&lt;BR /&gt;&lt;BR /&gt;Whether or not it is legal code the compiler should never fail (it should give an error message if illegal). I will update this thread with engineerings findings.&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;Wendy&lt;/P&gt;&lt;P&gt;&lt;A href="http://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/announcement/241/"&gt;Attaching or including files in a post&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2010 19:45:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836412#M55300</guid>
      <dc:creator>Wendy_Doerner__Intel</dc:creator>
      <dc:date>2010-08-25T19:45:12Z</dc:date>
    </item>
    <item>
      <title>Problem with procedure pointers: matching arguments</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836413#M55301</link>
      <description>Hello Wendy,&lt;BR /&gt;&lt;BR /&gt;yes, I know and that is the reason I posted this example. (Robert Corbett from Sun assures me in the c.l.f thread I started on this subject that it is legal. But whether it is useful, I am not sure.) Anyway the main&lt;BR /&gt;point is indeed the compiler error, not the code.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Arjen</description>
      <pubDate>Thu, 26 Aug 2010 06:34:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836413#M55301</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2010-08-26T06:34:07Z</dc:date>
    </item>
    <item>
      <title>Problem with procedure pointers: matching arguments</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836414#M55302</link>
      <description>Arjen,&lt;BR /&gt;&lt;BR /&gt;The 12.0 Update 2 compiler no longer emits an internal compiler error for this test case. Engineering considers it fixed by some changes they made to address other issues.&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;Wendy&lt;/P&gt;&lt;P&gt;&lt;A href="http://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/announcement/241/"&gt;Attaching or including files in a post&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2011 18:28:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836414#M55302</guid>
      <dc:creator>Wendy_Doerner__Intel</dc:creator>
      <dc:date>2011-02-04T18:28:11Z</dc:date>
    </item>
    <item>
      <title>Problem with procedure pointers: matching arguments</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836415#M55303</link>
      <description>Wendy,&lt;BR /&gt;&lt;BR /&gt;that is good to hear.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Arjen</description>
      <pubDate>Mon, 07 Feb 2011 07:42:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-with-procedure-pointers-matching-arguments/m-p/836415#M55303</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2011-02-07T07:42:31Z</dc:date>
    </item>
  </channel>
</rss>

