- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I'm using intel fortran compiler 10.1.13 and VS2005 and I currently have a problem in using FOR_DESCRIPTOR_ASSIGN subroutine. Take a look on this simply example:
use ifcore
implicit none
integer(4), pointer :: a(:)
integer(4), allocatable::buffer(:)
type(FOR_DIMS_INFO) dims_info(1)
integer::i, N
N=10
allocate(buffer(1:N))
do i=1,N
buffer(i)=i
enddo
dims_info(1)%LOWERBOUND = 0
dims_info(1)%UPPERBOUND = N-1
dims_info(1)%STRIDE = 1
call FOR_DESCRIPTOR_ASSIGN(&
a, &
LOC(buffer(1)), &
4, &
FOR_DESCRIPTOR_ARRAY_DEFINED .or. &
FOR_DESCRIPTOR_ARRAY_NODEALLOC .or. &
FOR_DESCRIPTOR_ARRAY_CONTIGUOUS, &
1, &
dims_info)
print *,a(0)
end
The resuls of this programm is:
forrtl: severe (408): fort: (3): Subscript #1 of the array A has value 0 which is less than the lower bound of 1
But lower bound of a must be 0 and upper bound must be 9
What do I do wrong?
PS. Sorry for my English.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, I think I am doing everything right and this is BUG offortran compiler.
The same error on x64 platform.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for help and analyze. I'll be waiting for the compiler updates.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page