- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The following code produces an error when compiled with IVF 9.
interface
subroutine get( a )
!dec$ attributes c:: get
integer,dimension(3),intent(out):: a
end subroutine get
end interface
Error: The INTENT(OUT) or INTENT(INOUT) attribute is not allowed for arguments received by value.
To me this seems incorrect because arrays are always passed by reference, irrespective of the calling convention.
The problem can be overcome by adding the following line:
!dec$ attributes reference :: a
interface
subroutine get( a )
!dec$ attributes c:: get
integer,dimension(3),intent(out):: a
end subroutine get
end interface
Error: The INTENT(OUT) or INTENT(INOUT) attribute is not allowed for arguments received by value.
To me this seems incorrect because arrays are always passed by reference, irrespective of the calling convention.
The problem can be overcome by adding the following line:
!dec$ attributes reference :: a
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That was a bug fixed in a later update. 9.1.028 is current.

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