I can compile the following code just fine using gfortran -c test.f90.
module math contains function addition(a, b) result(f) use iso_fortran_