- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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 솔루션
링크가 복사됨
2 응답
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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.