- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is the following code non-compliant? or is it an ifort compiler bug?
program hello
interface test
function test_func(array)
real :: array(:,:)
contiguous :: array
end function
end interface
end program hello
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Since the keyword contiguous is part of the interface of a routine (contiguity allows for further optimisation, IIUIC), I would say the program above is definitely conforming. gfortran accepts it as is. If I change the code to:
real, contiguous :: array(:,:)
Intel Fortran is happy too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
at was guess, that for confirming!
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