- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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
Best regards,
Thomas
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
Best regards,
Thomas
[plain] module TypeDefs
implicit none
type :: A
integer :: val
contains
procedure Display => 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 => Binst
CALL ClassPtr%Display
end program Test
[/plain]
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
DisplayA: 1
DisplayA: 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - tim18
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:
DisplayA: 1
DisplayA: 1
Thanks for the info.
Any estimates on when this release will be available?
best regards,
Thomas
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page