Hi,
The following MWE
module m_constants
integer :: the_answer = 42
end module
module m_fancy_module
implicit none
private
public :: caller
contains
subroutine caller
use m_constants ! Without this use statement everything is fine
call hi
end subroutine
subroutine hi
use m_constants
print*, "The answer is ", the_answer
end subroutine hi
end module
program example
use m_fancy_module
implicit none
call caller
end program example
results in unexpected behavior (starting at NVFortran 25.3)
❯ gfortran mwe.F90 && ./a.out
The answer is 42
❯ nvfortran mwe.F90 && ./a.out
/usr/bin/ld: /tmp/nvfortranIYEkbMAhzbYNh.o: in function `m_fancy_module_caller_':
/home/ronald/Documents/gkpic_fork/euterpe/mwe.F90:15:(.text+0x84): undefined reference to `hi_'