<?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: Procedure pointer problems with IVF 11.0.072? in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Procedure-pointer-problems-with-IVF-11-0-072/m-p/868478#M71442</link>
    <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;As Steve previously announced (&lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=66453" target="_blank"&gt;here&lt;/A&gt;), the 11.1 Release is now available, including fixes related to this thread.</description>
    <pubDate>Wed, 24 Jun 2009 11:14:49 GMT</pubDate>
    <dc:creator>Kevin_D_Intel</dc:creator>
    <dc:date>2009-06-24T11:14:49Z</dc:date>
    <item>
      <title>Procedure pointer problems with IVF 11.0.072?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Procedure-pointer-problems-with-IVF-11-0-072/m-p/868474#M71438</link>
      <description>Hi Steve,&lt;BR /&gt;&lt;BR /&gt;I've included code (below) that will reproduce the compiler errors I believe should not be there. &lt;BR /&gt;Turning on the reprocessor flag error_1 will reproduce an error related to a function returning a procedure pointer.Turning on the reprocessor flag error_2 will reproduce an error related to a procedure pointer component of a type as an actual argument in a subroutine. &lt;BR /&gt;&lt;BR /&gt;Would be very greatful for your comments.&lt;BR /&gt;&lt;BR /&gt;Code example:&lt;BR /&gt;&lt;BR /&gt;module procs&lt;BR /&gt;&lt;BR /&gt;type :: fem&lt;BR /&gt;integer :: type&lt;BR /&gt;procedure ( ), nopass, pointer :: bf =&amp;gt; null()&lt;BR /&gt;end type fem&lt;BR /&gt;&lt;BR /&gt;type(fem), pointer :: femi =&amp;gt; null()&lt;BR /&gt;type(fem), pointer :: femr =&amp;gt; null()&lt;BR /&gt;type(fem), pointer :: femc =&amp;gt; null()&lt;BR /&gt;&lt;BR /&gt;contains&lt;BR /&gt;&lt;BR /&gt;subroutine pi( x )&lt;BR /&gt;integer :: x&lt;BR /&gt;&lt;BR /&gt;write(*,*) x&lt;BR /&gt;end subroutine pi&lt;BR /&gt;&lt;BR /&gt;subroutine pr( x )&lt;BR /&gt;real :: x&lt;BR /&gt;&lt;BR /&gt;write(*,*) x&lt;BR /&gt;end subroutine pr&lt;BR /&gt;&lt;BR /&gt;subroutine pc( x )&lt;BR /&gt;character(len=*) :: x&lt;BR /&gt;&lt;BR /&gt;write(*,*) x&lt;BR /&gt;end subroutine pc&lt;BR /&gt;&lt;BR /&gt;subroutine pps(c, pproc )&lt;BR /&gt;character* 1, intent(in) :: c&lt;BR /&gt;procedure ( ), pointer, intent(out) :: pproc&lt;BR /&gt;&lt;BR /&gt;select case( c )&lt;BR /&gt;case( "i", "I" )&lt;BR /&gt;pproc =&amp;gt; pi&lt;BR /&gt;case( "r", "R" )&lt;BR /&gt;pproc =&amp;gt; pr&lt;BR /&gt;case( "c", "C" )&lt;BR /&gt;pproc =&amp;gt; pc&lt;BR /&gt;end select&lt;BR /&gt;&lt;BR /&gt;end subroutine pps&lt;BR /&gt;&lt;BR /&gt;#ifdef error_1&lt;BR /&gt;function ppf(c) result( pproc )&lt;BR /&gt;character* 1, intent(in) :: c&lt;BR /&gt;&lt;BR /&gt;procedure ( ), pointer :: pproc&lt;BR /&gt;&lt;BR /&gt;select case( c )&lt;BR /&gt;case( "i", "I" )&lt;BR /&gt;pproc =&amp;gt; pi&lt;BR /&gt;case( "r", "R" )&lt;BR /&gt;pproc =&amp;gt; pr&lt;BR /&gt;case( "c", "C" )&lt;BR /&gt;pproc =&amp;gt; pc&lt;BR /&gt;end select&lt;BR /&gt;&lt;BR /&gt;end function ppf&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;subroutine new( )&lt;BR /&gt;&lt;BR /&gt;procedure ( ), pointer :: proc&lt;BR /&gt;&lt;BR /&gt;allocate( femi, femr, femc )&lt;BR /&gt;&lt;BR /&gt;femi%type = 1&lt;BR /&gt;#ifdef error_2&lt;BR /&gt;call pps( "i", femi%bf )&lt;BR /&gt;#else&lt;BR /&gt;call pps( "i", proc )&lt;BR /&gt;femi%bf =&amp;gt; proc&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;femr%type = 2&lt;BR /&gt;call pps( "r", proc )&lt;BR /&gt;femr%bf =&amp;gt; proc&lt;BR /&gt;&lt;BR /&gt;femc%type = 3&lt;BR /&gt;call pps( "c", proc )&lt;BR /&gt;femc%bf =&amp;gt; proc&lt;BR /&gt;&lt;BR /&gt;end subroutine new&lt;BR /&gt;&lt;BR /&gt;end module procs&lt;BR /&gt;&lt;BR /&gt;program test&lt;BR /&gt;use procs&lt;BR /&gt;&lt;BR /&gt;procedure ( ), pointer :: pf&lt;BR /&gt;&lt;BR /&gt;call new( )&lt;BR /&gt;call femi%bf( 5 )&lt;BR /&gt;call femr%bf( 10.0 )&lt;BR /&gt;call femc%bf( "Hi!" )&lt;BR /&gt;&lt;BR /&gt;pf =&amp;gt; pi&lt;BR /&gt;call pps( "i", pf )&lt;BR /&gt;call pf( 5 )&lt;BR /&gt;&lt;BR /&gt;pf =&amp;gt; pr&lt;BR /&gt;call pps( "r", pf )&lt;BR /&gt;call pf( 10.0 )&lt;BR /&gt;&lt;BR /&gt;pf =&amp;gt; pc&lt;BR /&gt;call pps( "c", pf )&lt;BR /&gt;call pf( "Hi!" )&lt;BR /&gt;&lt;BR /&gt;end program test&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Apr 2009 10:57:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Procedure-pointer-problems-with-IVF-11-0-072/m-p/868474#M71438</guid>
      <dc:creator>Magne_R_</dc:creator>
      <dc:date>2009-04-01T10:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure pointer problems with IVF 11.0.072?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Procedure-pointer-problems-with-IVF-11-0-072/m-p/868475#M71439</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
As Steve is off for a few days, I will agree that you have demonstrated a problem which ought to be reported on premier.intel.com. Evidently, the implementation of this aspect of f2003 isn't complete, but the compiler should either implement it or give or give a more direct message about it.&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Apr 2009 13:29:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Procedure-pointer-problems-with-IVF-11-0-072/m-p/868475#M71439</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-04-01T13:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure pointer problems with IVF 11.0.072?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Procedure-pointer-problems-with-IVF-11-0-072/m-p/868476#M71440</link>
      <description>&lt;BR /&gt;I thought maybe the first issue which causes an internal compiler error with newer compilers might already have been addressed, but your variant is not fixed by recent related fixes. I reported both of these to Development since you have done us the favor of providing a concise test case already.&lt;BR /&gt;&lt;BR /&gt;I will update this thread as I learn more.&lt;BR /&gt;&lt;BR /&gt;(error_1: Internal tracking id: DPD200119840)&lt;BR /&gt;(error_2: Internal tracking id: DPD200119887)&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Apr 2009 18:02:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Procedure-pointer-problems-with-IVF-11-0-072/m-p/868476#M71440</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2009-04-01T18:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure pointer problems with IVF 11.0.072?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Procedure-pointer-problems-with-IVF-11-0-072/m-p/868477#M71441</link>
      <description>&lt;BR /&gt;Both of these issues are fixed in the upcoming 11.1 release (May/June). I will post again when this release is available.</description>
      <pubDate>Tue, 14 Apr 2009 19:14:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Procedure-pointer-problems-with-IVF-11-0-072/m-p/868477#M71441</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2009-04-14T19:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure pointer problems with IVF 11.0.072?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Procedure-pointer-problems-with-IVF-11-0-072/m-p/868478#M71442</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;As Steve previously announced (&lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=66453" target="_blank"&gt;here&lt;/A&gt;), the 11.1 Release is now available, including fixes related to this thread.</description>
      <pubDate>Wed, 24 Jun 2009 11:14:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Procedure-pointer-problems-with-IVF-11-0-072/m-p/868478#M71442</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2009-06-24T11:14:49Z</dc:date>
    </item>
  </channel>
</rss>

