<?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 Access violation on calling member function of a type via polymorphic pointer in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Access-violation-on-calling-member-function-of-a-type-via/m-p/881255#M75319</link>
    <description>The code below produces an access violation on the call (IVF 11.1.038). I am quite sure that this should not happen with the given code.&lt;BR /&gt;&lt;BR /&gt;I am not sure, if it is related to any of the other issues I have been reporting regarding the OO-features in v11.1&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Thomas&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;[plain]    module TypeDefs

    implicit none

    type :: A
    integer :: val
    contains 
        procedure Display =&amp;gt; DisplayA
    end type
        
    type, extends(A) :: B
        integer :: val2
    end type

    contains
    
    subroutine DisplayA( this )
    class (A)        :: this
        write (*,*) 'DisplayA: ', this%val
    end subroutine
        
    end module TypeDefs

    program Test
    use TypeDefs

    type (B), target        ::  Binst
    class (A), pointer      ::  ClassPtr
    
    Binst%val = 1
    Binst%val2 = 2
    
    ClassPtr =&amp;gt; Binst
    CALL ClassPtr%Display

    end program Test
[/plain]&lt;/PRE&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 01 Sep 2009 15:01:41 GMT</pubDate>
    <dc:creator>thomas_boehme</dc:creator>
    <dc:date>2009-09-01T15:01:41Z</dc:date>
    <item>
      <title>Access violation on calling member function of a type via polymorphic pointer</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Access-violation-on-calling-member-function-of-a-type-via/m-p/881255#M75319</link>
      <description>The code below produces an access violation on the call (IVF 11.1.038). I am quite sure that this should not happen with the given code.&lt;BR /&gt;&lt;BR /&gt;I am not sure, if it is related to any of the other issues I have been reporting regarding the OO-features in v11.1&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Thomas&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;[plain]    module TypeDefs

    implicit none

    type :: A
    integer :: val
    contains 
        procedure Display =&amp;gt; DisplayA
    end type
        
    type, extends(A) :: B
        integer :: val2
    end type

    contains
    
    subroutine DisplayA( this )
    class (A)        :: this
        write (*,*) 'DisplayA: ', this%val
    end subroutine
        
    end module TypeDefs

    program Test
    use TypeDefs

    type (B), target        ::  Binst
    class (A), pointer      ::  ClassPtr
    
    Binst%val = 1
    Binst%val2 = 2
    
    ClassPtr =&amp;gt; Binst
    CALL ClassPtr%Display

    end program Test
[/plain]&lt;/PRE&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Sep 2009 15:01:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Access-violation-on-calling-member-function-of-a-type-via/m-p/881255#M75319</guid>
      <dc:creator>thomas_boehme</dc:creator>
      <dc:date>2009-09-01T15:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Access violation on calling member function of a type via p</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Access-violation-on-calling-member-function-of-a-type-via/m-p/881256#M75320</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
The 11.1 compiler says ClassPtr is NULL. So this goes beyond the degree to which f2003 is implemented in the released compiler. Result from a newer ifort:&lt;BR /&gt; DisplayA: 1&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Sep 2009 15:35:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Access-violation-on-calling-member-function-of-a-type-via/m-p/881256#M75320</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-09-01T15:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Access violation on calling member function of a type via p</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Access-violation-on-calling-member-function-of-a-type-via/m-p/881257#M75321</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/367365"&gt;tim18&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;The 11.1 compiler says ClassPtr is NULL. So this goes beyond the degree to which f2003 is implemented in the released compiler. Result from a newer ifort:&lt;BR /&gt;DisplayA: 1&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thanks for the info.&lt;BR /&gt;&lt;BR /&gt;Any estimates on when this release will be available?&lt;BR /&gt;&lt;BR /&gt;best regards,&lt;BR /&gt;Thomas&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Sep 2009 15:53:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Access-violation-on-calling-member-function-of-a-type-via/m-p/881257#M75321</guid>
      <dc:creator>thomas_boehme</dc:creator>
      <dc:date>2009-09-01T15:53:02Z</dc:date>
    </item>
  </channel>
</rss>

