- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The following test code runs with CVF (and also Lahey fortran) but does not compile with IVF 11.1:
Error message #7835 (record fields or array elements or sections of pointers are not themselves pointers. [ASSOCIATED].
I am new with IVF (and with f90 in general), so is there someone who could explain me how I can modify the code ? Thank you
The following test code runs with CVF (and also Lahey fortran) but does not compile with IVF 11.1:
Error message #7835 (record fields or array elements or sections of pointers are not themselves pointers. [ASSOCIATED].
I am new with IVF (and with f90 in general), so is there someone who could explain me how I can modify the code ? Thank you
[plain] type transfer
integer, dimension(:), pointer :: ndex
end type transfer
type(transfer) :: d
INTEGER::nm
nm=12
if (associated(d%ndex(1:nm)))then
call free_space()
else
WRITE(*,'("Not allocated")')
endif
contains
subroutine free_space()
deallocate(d%ndex)
WRITE(*,'("DEALLOCATED")')
end subroutine free_space
END
[/plain]
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
IVF is correct, the other compilers are not. Remove the (1:nm) in the call to ASSOCIATED.
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