GCC 8 includes Gfortran 8, which adds
-std=f2018 option, which is a
on enforcing/allowing Fortran 2018 standard.
Gfortran 8 can be
from the Ubuntu-test PPA.
Note that libraries such as HDF5 etc. will have to be recompiled to work with Gfortran 8.1 due to the new version 5 ABI.
Gfortran 8 can be used to do a rough check of Fortran 2018 standard correctness for commonly uses syntax.