With the latest stdlib
version I’m getting the same error with this minimal example
program check
use iso_fortran_env, only: real64
use stdlib_sorting, only: sort_index
implicit none
real(real64) :: X(5) = [2, 5, 3, 5, 7]
integer :: idx(5)
call sort_index(X, idx)
print *, idx
end program check
Gives
Error: There is no specific subroutine for the generic ‘sort_index’ at (1)
test/check.f90:9:27:
9 | call sort_index(X, idx)
| 1
Error: There is no specific subroutine for the generic ‘sort_index’ at (1)