The following reduced code is rejected by 23.5, but works with <= 23.3:
module bug
implicit none
interface pbgrib
module procedure pbgrib_90
end interface pbgrib
contains
subroutine pbgrib_90 (file)
integer :: file
integer :: iret
external PBGRIB
call PBGRIB (file, iret)
call PBGRIB (file, iret) ! 2nd reference fails
end subroutine pbgrib_90
end
This now gives:
NVFORTRAN-S-0155-Could not resolve generic procedure pbgrib (pgibug.f90: 12)
0 inform, 0 warnings, 1 severes, 0 fatal for pbgrib_90
Interestingly, commenting one of the identical calls makes the code compile.