Gfortran and Fortran 2018 standard enforcement

less than 1 minute read

GCC 8.1 includes Gfortran 8.1, which adds -std=f2018 option, which is a good start on enforcing/allowing Fortran 2018 standard. Gfortran 8.1 can be obtained from the Ubuntu-test PPA. However, note that libraries such as HDF5 etc. will have to be recompiled to work Gfortran 8.1

At the moment, Gfortran 8.1 can be used to do a rough check of Fortran 2018 standard correctness for commonly uses syntax.

Gfortran 9 is already under development, with ever increasing modern Fortran 2008/2018 standard compliance.

Leave a Comment