Hi,
I’ve been trying out pgi’s support of Fortran submodules and there appears to be a bug when you use an interface to a module function that has an *
in an array size. For example:
interface
module function thing(n,x) result(y)
integer, intent(in) :: n
real, intent(in) :: x(n*n)
real :: y(n*n)
end function thing
end interface
I have tried this with both 19.4 and 19.10 compiler versions and for comparison gfortran
and ifort
work fine. Any ideas? Here’s a link to some code that reproduces the problem compiler_bugs/pgi_f90_smod-array-dims at master · WillTrojak/compiler_bugs · GitHub
Will