Compiling Fortran 2003 programs

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

By default, the f2003, xlf2003, and xlf2003_r commands do not conform completely to the Fortran 2003 standard. If you need full compliance, compile with the following additional compiler suboptions:
-qlanglvl=2003std -qnodirective -qnoescape -qfloat=nomaf:rndsngl:nofold
   -qnoswapomp -qstrictieeemod
Also specify the following runtime options:
XLFRTEOPTS="err_recovery=no:langlvl=2003std: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