23.5 Regression: Could not resolve generic procedure

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.

Thanks for the report anlauf.

I doubled checked with engineering and indeed this new error is unexpected. I filed a problem report, TPR #33691.

-Mat

Hi anlauf,

Engineering has let me know that TPR #33691 was fixed in our 23.7 release.

% nvfortran -V23.5 -c test1.f90
NVFORTRAN-S-0155-Could not resolve generic procedure pbgrib (test1.f90: 12)
  0 inform,   0 warnings,   1 severes, 0 fatal for pbgrib_90
% nvfortran -V23.7 -c test1.f90
%

-Mat