Undefined reference to `ieee_is_nan_'

I’m trying to compile a FORTRAN code in PGI 19.10 compiler using pgfortran flag and it’s giving me the following errors
undefined reference to 'ieee_is_nan_'. I have also defined:
use ieee_arithmetic
Can you please help me with it? Thank you!

Do you have small reproducing example you can share? I’m only able to reproduce this error when “ieee_arithmetic” is not used. Perhaps the “use ieee_arithmetic” is included in the wrong spot?