Fortran Wiki
Fortran 2008

Fortran 2008 is a minor revision of Fortran 2003.

The final draft of the Fortran 2008 standard, ISO/IEC JTC 1/SC 22/WG 5/N1830, was released on June 7, 2010 and is available from the WG5’s FTP server at ftp://ftp.nag.co.uk/sc22wg5/N1801-N1850/N1830.pdf.

For compiler support, see Fortran 2008 status.

Summary of New Features

New features include:

  • Submodules
  • Coarrays
  • do concurrent construct
  • contiguous attribute
  • block construct
  • exit statement
  • error stop statement
  • Internal procedures can be passed as actual arguments
  • Procedure pointers can point to an internal procedure
  • Maximum rank increased to 15
  • newunit= in open statement
  • g0 edit descriptor
  • Unlimited format item

Changes to existing intrinsic procedures:

New intrinsic procedures:

Additions to intrinsic modules:

  • iso_fortran_env:

    • Information about the compiler: compiler_version and compiler_options.
    • Named constants for selecting kind values.
  • ieee_arithmetic:

    • ieee_selected_real_kind now has a radix= argument.
  • iso_c_binding:

    • c_sizeof returns the size of an array element in bytes.

Declared Obsolete:

  • entry (Fortran 77 and later)

News

  • John Reid announced on 2010 September 10th that the Final Draft International Standard had been approved by ISO by 18 votes to nil with 15 abstentions. The standard is likely to be published by ISO within two months, i.e. by the end of November 2010.

Standards Documents

J3 Documents:

Latest draft accepted by the ISO Secretariat:

Previous drafts of the standard:

See Also

References