nvfortran 21.5-0 LLVM 64-bit target on x86-64 Linux -tp nehalem
NVIDIA Compilers and Tools
Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
Linux compiler nvfortran (21-5-0) rejects conforming source with a procedure pointer actual argument when dummy is EXTERNAL.
NVFORTRAN-S-0188-Argument number 1 to doit: type mismatch (/tmp/a.f90: 11)
0 inform, 0 warnings, 1 severes, 0 fatal for test
Program test Implicit None Interface Subroutine model(x) Real :: x End Subroutine End Interface Procedure (model), Pointer :: pptr pptr => monit Call doit(mon=pptr) Contains Subroutine monit(x) Real :: x Print *, x End Subroutine Subroutine doit(mon) External :: mon Call mon(2.0) End Subroutine End Program