Compiling Fortran 2008 programs

The f2008, xlf2008, and xlf2008_r commands make your programs conform more closely to the Fortran 2008 Standard than do the other invocation commands. The Fortran 2008 commands accept free source form by default. I/O formats for the Fortran 2008 commands are the same as for the f95, xlf95, xlf95_r, xlf95_r7, f2003, xlf2003, and xlf2003_r commands. The Fortran 2008 commands format infinity and NaN floating-point values in the same way as the Fortran 2003 commands. The Fortran 2008 commands enable polymorphism by default.

By default, the f2008, xlf2008, and xlf2008_r commands do not conform completely to the Fortran 2008 standard. If you need full compliance, compile with the following additional compiler suboptions:
-qlanglvl=2008std -qnodirective -qnoescape -qfloat=nomaf:rndsngl:nofold
   -qnoswapomp -qstrictieeemod
Also specify the following runtime options:
XLFRTEOPTS="err_recovery=no:langlvl=2008std:iostat_end=2003std:
            internal_nldelim=2003std"


Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us