I’m trying to compile this code, but I got an error saying that the variable path_len has not been explicitly declared.
gfortran and xlf are compiling it but not pgfortran.
Is it illegal fortran and pgfortran is right reporting it as an error or is it a bug in pgfortran?
I’m using PGI 18.10, community version.
I compiled it with: pgfortran -c function.f
module m integer, parameter :: path_len = 250 end module m character(len=path_len) function f() use m implicit none f="mypath" return end