Here is the minimal code to reproduce the problem:
program main print *, sind(45.) end program main
If you compile it with
the compiler will compile it with no problem, but if you use the
-std flag, the compiler will only compile it if you use
gfortran mini.f90 -std=legacy
Based on the page of SIND, one should be able to compile it with
gfortran mini.f90 -fdec-math -std=f2018
will not work.
I know for the purpose of portability I probably should not use the function
SIND, but all major Fortran compilers like
ifort have this function built in. Are there any work-arounds?