If I try to compile:
# 1 "foo.f90"
module foo
character, parameter :: a(2) = 'A'
end module foo
with the command:
nvfortran -g -cpp -acc -c fail.f90
I get the message:
nvvmCompileProgram error 9: NVVM_ERROR_COMPILATION.
Error: /tmp/pgacczWfJglDzwHx8v.gpu (47, 27): parse missing required field 'scope'
NVFORTRAN-F-0155-Compiler failed to translate accelerator region (see -Minfo messages): Device compiler exited with error status code (fail.f90: 1)
NVFORTRAN/x86-64 Linux 22.3-0: compilation aborted
subtle modifications of the source file make this go away.