https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119995
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
erf is not part of the Fortran 2003 standard, so -std=f2003 won't work.
Either use -std=f2008 or remove it or use -fall-intrinsics .
See https://gcc.gnu.org/onlinedocs/gfortran/ERF.html
see
https://gcc.gnu.org/onlinedocs/gfortran/Fortran-Dialect-Options.html#index-fall-intrinsics