Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

COMPILER BUG: contiguous statement in interface

DataScientist
Valued Contributor I
1,956 Views

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 Kudos
1 Solution
DataScientist
Valued Contributor I
1,934 Views

at was guess, that for confirming!

View solution in original post

0 Kudos
2 Replies
Arjen_Markus
Honored Contributor II
1,937 Views

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
Valued Contributor I
1,935 Views

at was guess, that for confirming!

0 Kudos
Reply