Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29591 토론

COMPILER BUG: contiguous statement in interface

DataScientist
소중한 기여자 I
2,381 조회수

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

 

 

 

0 포인트
1 솔루션
DataScientist
소중한 기여자 I
2,359 조회수

at was guess, that for confirming!

원본 게시물의 솔루션 보기

0 포인트
2 응답
Arjen_Markus
명예로운 기여자 II
2,362 조회수

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.

DataScientist
소중한 기여자 I
2,360 조회수

at was guess, that for confirming!

0 포인트
응답