2599
Comment: Added links to the various draft standards available.

10595
Update TR 29113

Deletions are marked like this.  Additions are marked like this. 
Line 3:  Line 3: 
Draft (unofficial) versions of the various Fortran standards and corrigenda are available from the [http://j3fortran.org/ J3 website], the [http://www.nag.co.uk/sc22wg5/ WG5 website], and/or the [ftp://ftp.nag.co.uk/sc22wg5/ WG5 file server], in various formats.  Draft (unofficial) versions of the various recent Fortran standards and corrigenda are available from the [[http://j3fortran.org/J3 website]], the [[http://www.nag.co.uk/sc22wg5/WG5 website]], and/or the [[ftp://ftp.nag.co.uk/sc22wg5/WG5 file server]], in various formats. In addition, some older Fortran standards are available from [[http://www.fortran.comwww.fortran.com]]. The official standards can be bought from the [[http://www.iso.org/iso/en/CombinedQueryResult.CombinedQueryResult?queryString=FortranInternational Organization for Standardization (ISO)]] or from your national standardization organization. 
Line 5:  Line 5: 
Note that, of these standards, GNU Fortran currently only supports the base Fortran 95 standard (not parts 2 or 3) as amended in the two corrigenda, the Fortran 95 TR 15581 extension, and some portions of the Fortran 2003 standard. The other documents are linked here for reference, but should not be taken as documentation of GNU Fortran features.  Note that, of these standards, GNU Fortran currently only supports the base Fortran 95 standard (not parts 2 or 3) as amended in the two corrigenda, the Fortran 95 TR 15581 extension, the Fortran 77 standard with the MILSTD 1753 extensions, and some portions of the Fortran 2003 standard; these standards have been highlighted in bold. The other documents are linked here for reference, but should not be taken as documentation of GNU Fortran features. == Fortran  Automatic Coding System for the IBM 704 == The oldest version; dated October 15, 1956, first presented in February 1957 and first delivered in April 1957. [[http://www.fhjena.de/~kleine/history/languages/FortranAutomaticCodingSystemForTheIBM704.pdfFortran  Programmer's Reference Manual (PDF)]] == Fortran 66 == Fortran 66 Standard (X3.91966): [[http://www.fortran.com/fortran/fortran_66.zip(gif)]] [[http://www.fhjena.de/~kleine/history/languages/ansix3dot91966Fortran66.pdf(pdf)]] == Fortran 77 == '''Fortran 77 Standard (!X3J3/90.4, [[http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=6127ISO 1539:1980]]):''' [[http://www.fortran.com/fortran/F77_std/f77_std.html(text)]] [[http://www.fortran.com/fortran/F77_std/rjcnf.html(html)]] '''DoD Extensions to Fortran 77 (MILSTD 1753):''' [[http://www.fortran.com/fortran/mil_std_1753.html(html)]] == Fortran 90 == '''Fortran 90 Standard [[http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=17366ISO/IEC 1539:1991]]''' 
Line 9:  Line 27: 
Fortran 95 Standard, final draft (ISO/IEC 15391:1997): [http://j3fortran.org/doc/standing/007%20Draft%20Revision%20to%20Fortran%20Standards%20Document/97007r2/ (all formats)], [http://j3fortran.org/doc/standing/007%20Draft%20Revision%20to%20Fortran%20Standards%20Document/97007r2/pdf/97007r2.pdf (pdf)].  '''Fortran 95 Standard, final draft ([[http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=39691ISO/IEC 15391:1997]]):''' [[http://j3fortran.org/doc/standing/archive/007/97007r2/(all formats)]], [[http://j3fortran.org/doc/standing/archive/007/97007r2/pdf/97007r2.pdf(pdf)]]. 
Line 11:  Line 29: 
Fortran 95 Standard (Part 2: ISOVaryingStrings), final draft (ISO/IEC 15392:2000): [ftp://ftp.nag.co.uk/sc22wg5/N1351N1400/N1375.pdf (pdf)]  Fortran 95 Standard (Part 2: ISOVaryingStrings), final draft ([[http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=26934ISO/IEC 15392:2000]]): [[ftp://ftp.nag.co.uk/sc22wg5/N1351N1400/N1375.pdf(pdf)]] (Reference implementation written in Fortran [[ftp://ftp.nag.co.uk/sc22wg5/ISO_VARYING_STRING/1]], [[http://www.fortran.com/iso_varying_string.f952]]) 
Line 13:  Line 32: 
Fortran 95 Standard (Part 3: Conditional Compilation), final draft (ISO/IEC 15393:1998): [ftp://ftp.nag.co.uk/sc22wg5/N1301N1350/N1306.pdf (pdf)]  (ISO Varying strings are not implemented in GNU Fortran, but [[http://www.nag.co.uk/sc22wg5/IS15392.htmlFortran 95 module]] exists which implements this is Fortran.) 
Line 15:  Line 34: 
Fortran 95 FloatingPoint Exceptions TR (TR 15580): [ftp://ftp.nag.co.uk/sc22wg5/N1351N1400/N1378.pdf (pdf)]  Fortran 95 Standard (Part 3: Conditional Compilation), final draft ([[http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=29926ISO/IEC 15393:1998]]): [[ftp://ftp.nag.co.uk/sc22wg5/N1301N1350/N1306.pdf(pdf)]] 
Line 17:  Line 36: 
Fortran 95 Allocatable Components TR (TR 15581): [ftp://ftp.nag.co.uk/sc22wg5/N1351N1400/N1379.pdf (pdf)]  (Conditional Compilation is not supported directly by GNU Fortran but you can preprocess the files using [[http://users.erols.com/dnagle/coco.htmlCOCO]].) 
Line 19:  Line 38: 
Fortran 95 Corrigendum 1: [ftp://ftp.nag.co.uk/sc22wg5/N1401N1450/N1421.pdf (pdf)]  Fortran 95 FloatingPoint Exceptions TR, draft ([[http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=34370ISO/IEC TR 15580:2001]]): [[ftp://ftp.nag.co.uk/sc22wg5/N1351N1400/N1378.pdf(pdf)]] 
Line 21:  Line 40: 
Fortran 95 Corrigendum 2: [ftp://ftp.nag.co.uk/sc22wg5/N1451N1500/N1472.pdf (pdf)]  '''Fortran 95 Allocatable Components TR, draft ([[http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=34367ISO/IEC TR 15581:2001]]):''' [[ftp://ftp.nag.co.uk/sc22wg5/N1351N1400/N1379.pdf(pdf)]] 
Line 23:  Line 42: 
'''Fortran 95 Corrigendum 1, draft:''' [[ftp://ftp.nag.co.uk/sc22wg5/N1401N1450/N1421.pdf(pdf)]] '''Fortran 95 Corrigendum 2, draft:''' [[ftp://ftp.nag.co.uk/sc22wg5/N1451N1500/N1472.pdf(pdf)]] [[http://j3fortran.org/doc/standing/links/015.txtCompleted interpretations of Fortran 95]] 

Line 26:  Line 50: 
Fortran 2003 Standard, final draft (ISO/IEC 15391:2004(E)): [http://www.j3fortran.org/doc/year/04/04007.txt (ascii)], [http://www.j3fortran.org/doc/year/04/04007.tex.tar (TeX)], [http://www.j3fortran.org/doc/year/04/04007.pdf (pdf)].  '''Fortran 2003 Standard, final draft ([[http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=39691ISO/IEC 15391:2004(E)]]):''' [[http://www.j3fortran.org/doc/year/04/04007.txt(ascii)]], [[http://www.j3fortran.org/doc/year/04/04007.tex.tar(TeX)]], [[http://www.j3fortran.org/doc/year/04/04007.pdf(pdf)]]. 
Line 28:  Line 52: 
Fortran 2003, Enhanced Modules TR (ISO/IEC TR 19767:2005(E)): [ftp://ftp.nag.co.uk/sc22wg5/N1601N1650/N1602.pdf (pdf)].  Fortran 2003, Enhanced Modules TR, draft ([[http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=37995ISO/IEC TR 19767:2005(E)]]): [[ftp://ftp.nag.co.uk/sc22wg5/N1601N1650/N1602.pdf(pdf)]]. 
Line 30:  Line 54: 
Fortran 2003 Corregendum 1: [ftp://ftp.nag.co.uk/sc22wg5/N1601N1650/N1636.pdf (pdf)].  '''Fortran 2003 Corrigendum 1, draft ([[http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=43930ISO/IEC 15391:2004/Cor 1:2006 (E)]]):''' [[ftp://ftp.nag.co.uk/sc22wg5/N1601N1650/N1636.pdf(pdf)]] '''Fortran 2003 Corrigendum 2, final draft ([[http://www.iso.org/iso/en/CatalogueDetailPage.CatalogueDetail?CSNUMBER=45447ISO/IEC 15391:2004/Cor.2:2007 (E)]]):''' [[ftp://ftp.nag.co.uk/sc22wg5/N1651N1700/N1665.pdf(pdf)]] '''Fortran 2003 Corrigendum 3, draft''': [[ftp://ftp.nag.co.uk/sc22wg5/N1701N1750/N1731.pdfPDF]] ([[ftp://ftp.nag.co.uk/sc22wg5/N1701N1750/N1730.txtdefect reports]]) '''Fortran 2003 Corrigendum 4''': [[ftp://ftp.nag.co.uk/sc22wg5/N1751N1800/N1784.pdfPDF]] '''[[http://www.j3fortran.org/doc/year/08/08018r1.pdfFortran 2003 update pages]]''' (consists of corrigenda 1 and 2) [[http://j3fortran.org/doc/standing/links/016.txtCompleted interpretations of Fortran 2003]] [[ftp://ftp.nag.co.uk/sc22wg5/N1601N1650/N1648.pdfThe New Features of Fortran 2003]] by John Reid (non normative) and [[http://nag.com/nagware/NP/doc/nag_f2003.pdfsomething similar by NAG]] [[ftp://ftp.nag.co.uk/sc22wg5/N1751N1800/N1764.txtN1764: New (20081208) interpretations, which passed the J3 ballot]] [[ftp://ftp.nag.co.uk/sc22wg5/N1751N1800/NN1805.txtN1805: Fortran interpretations that have passed a J3 letter ballot]] == Fortran 2008 == [[ftp://ftp.nag.co.uk/sc22wg5/N1751N1800/N1791.pdfFinal Candidate Draft]] (J3/09007r3:2009/08/25, WG5 FCD 15391, 25 August 2009) ([[ftp://ftp.nag.co.uk/sc22wg5/N1751N1800/N1787.pdfNonnormative coarrays description]], [[ftp://ftp.nag.co.uk/sc22wg5/N1701N1750/N1702.pdfnonnormative coarray rational]]) ([[ftp://ftp.nag.co.uk/sc22wg5/N1651N1700/N1693.txtTime table]], [[ftp://ftp.nag.co.uk/sc22wg5/N1751N1800/N1781.txtproposed newer time table]]) [[http://www.j3fortran.org/doc/year/08/08272.htmlJ3 reply to CD comments]] [[ftp://ftp.nag.co.uk/sc22wg5/N1751N1800/N1760.txtWG5 responses to CD comments]] (augments and supercedes J3's reply) [[ftp://ftp.nag.co.uk/sc22wg5/N1701N1750/N1729.pdfThe new features of Fortran 2008]] by John Reid (non normative) === TR 29113 === [[ftp://ftp.nag.co.uk/sc22wg5/N1751N1800/N1761.txtTR 29113: "Further Interoperability of Fortran with C" (Long)]] (draft from November 2008). At the [[http://j3fortran.org/doc/year/10/agenda191.txtFebruary 2010 meeting]] it was decided to rework the draft as outlines in [[http://j3fortran.org/doc/year/10/10142.txtC Interoperability Objectives]]; the official publication is deferred to November 2011. 
Line 34:  Line 86: 
== OpenMP (Open MultiProcessing) == [[http://openmp.org/wp/openmpspecifications/OpenMP specifications]]  for gfortran relevant and supported are 2.5 and 3.0. 

Line 39:  Line 95: 
POSIX Fortran 77 Language Interfaces (IEEE Std 1003.91992) [http://ieeexplore.ieee.org/iel1/2891/4710/00182910.pdf?isnumber= (pdf)]  POSIX Fortran 77 Language Interfaces (IEEE Std 1003.91992) [[http://ieeexplore.ieee.org/iel1/2891/4710/00182910.pdf?isnumber=(pdf)]] Note IEEE 1003.91992 was withdrawn 6 February 2003. Some vendors provide their own way to access POSIX functions and make those available as module; for instance the [[http://software.intel.com/sites/products/documentation/hpc/compilerpro/enus/fortran/lin/compiler_f/bldaps_for/common/bldaps_portrout.htmIFPORT]] module of Intel or the [[http://www.nag.co.uk/nagware/np/r52_doc/f90_* modules of NAG]]. There also some compilerindependent efforts to make them accessible, e.g. [[http://savannah.nongnu.org/projects/posix90/Posix90]] ([[http://www.nongnu.org/posix90/doc]]), [[http://flibs.sf.netflibs' platform/files and directories]], [[http://sourceforge.net/projects/fortranposix/fortranposix]]. == ISO/IEC Project 22.24772: Guidance for Avoiding Vulnerabilities through Language Selection and Use == "The [[http://www.aitcnet.org/isai/index.htmlOWGV project]] is preparing comparative guidance spanning multiple programming languages, so that application developers will be better able to avoid the programming errors that lead to vulnerabilities in these languages and their attendant consequences. This guidance can also be used by developers to select source code evaluation tools that can discover and eliminate coding errors that lead to vulnerabilities." * [[http://www.aitcnet.org/isai/_Mtg_10/_Mtg_9/22OWGVN0138/n0138.pdfDraft N0138]] (20080818) == IEEE 754 == The [[http://www.ieee.org/web/standards/home/IEEE]] Standard for Binary FloatingPoint Arithmetic (IEEE 754) is the most widelyused standard for floatingpoint computation. Unfortunately, they are not freely available. * [[http://ieeexplore.ieee.org/xpl/freeabs_all.jsp?tp=&isnumber=1316&arnumber=30711&punumber=2355IEEE 7541985]] Standard for Binary FloatingPoint Arithmetic * [[http://ieeexplore.ieee.org/xpl/freeabs_all.jsp?tp=&isnumber=1121&arnumber=27840&punumber=2502IEEE 8541987]] Standard for RadixIndependent FloatingPoint Arithmetic * '''[[http://ieeexplore.ieee.org/servlet/opac?punumber=4610933IEEE 7542008 IEEE Standard for FloatingPoint Arithmetic]]''' * [[http://www.validlab.com/754R/drafts/archive/20061004.pdfLatest publicly available draft of IEEE 7542008]] (4 October 2006) == ISO/IEC 9899 Programming languages  C == The C standard is relevant for two parts: (a) the interoperability features of Fortran 2003/2008/interop TR and (b) for the C Preprocessor (CPP; "Preprocessing directives"), which gfortran supports as vendor extension. * [[http://www.openstd.org/JTC1/SC22/WG14/'''JTC1/SC22/WG14'''  C]] (C drafts are also available there) 
Fortran Standards Documents
Draft (unofficial) versions of the various recent Fortran standards and corrigenda are available from the J3 website, the WG5 website, and/or the WG5 file server, in various formats. In addition, some older Fortran standards are available from www.fortran.com. The official standards can be bought from the International Organization for Standardization (ISO) or from your national standardization organization.
Note that, of these standards, GNU Fortran currently only supports the base Fortran 95 standard (not parts 2 or 3) as amended in the two corrigenda, the Fortran 95 TR 15581 extension, the Fortran 77 standard with the MILSTD 1753 extensions, and some portions of the Fortran 2003 standard; these standards have been highlighted in bold. The other documents are linked here for reference, but should not be taken as documentation of GNU Fortran features.
Fortran  Automatic Coding System for the IBM 704
The oldest version; dated October 15, 1956, first presented in February 1957 and first delivered in April 1957. Fortran  Programmer's Reference Manual (PDF)
Fortran 66
Fortran 66 Standard (X3.91966): (gif) (pdf)
Fortran 77
Fortran 77 Standard (!X3J3/90.4, ISO 1539:1980): (text) (html)
DoD Extensions to Fortran 77 (MILSTD 1753): (html)
Fortran 90
Fortran 90 Standard ISO/IEC 1539:1991
Fortran 95
Fortran 95 Standard, final draft (ISO/IEC 15391:1997): (all formats), (pdf).
Fortran 95 Standard (Part 2: ISOVaryingStrings), final draft (ISO/IEC 15392:2000): (pdf) (Reference implementation written in Fortran 1, 2)
(ISO Varying strings are not implemented in GNU Fortran, but Fortran 95 module exists which implements this is Fortran.)
Fortran 95 Standard (Part 3: Conditional Compilation), final draft (ISO/IEC 15393:1998): (pdf)
(Conditional Compilation is not supported directly by GNU Fortran but you can preprocess the files using COCO.)
Fortran 95 FloatingPoint Exceptions TR, draft (ISO/IEC TR 15580:2001): (pdf)
Fortran 95 Allocatable Components TR, draft (ISO/IEC TR 15581:2001): (pdf)
Fortran 95 Corrigendum 1, draft: (pdf)
Fortran 95 Corrigendum 2, draft: (pdf)
Completed interpretations of Fortran 95
Fortran 2003
Fortran 2003 Standard, final draft (ISO/IEC 15391:2004(E)): (ascii), (TeX), (pdf).
Fortran 2003, Enhanced Modules TR, draft (ISO/IEC TR 19767:2005(E)): (pdf).
Fortran 2003 Corrigendum 1, draft (ISO/IEC 15391:2004/Cor 1:2006 (E)): (pdf)
Fortran 2003 Corrigendum 2, final draft (ISO/IEC 15391:2004/Cor.2:2007 (E)): (pdf)
Fortran 2003 Corrigendum 3, draft: PDF (defect reports)
Fortran 2003 Corrigendum 4: PDF
Fortran 2003 update pages (consists of corrigenda 1 and 2)
Completed interpretations of Fortran 2003
The New Features of Fortran 2003 by John Reid (non normative) and something similar by NAG
N1764: New (20081208) interpretations, which passed the J3 ballot N1805: Fortran interpretations that have passed a J3 letter ballot
Fortran 2008
Final Candidate Draft (J3/09007r3:2009/08/25, WG5 FCD 15391, 25 August 2009) (Nonnormative coarrays description, nonnormative coarray rational) (Time table, proposed newer time table)
J3 reply to CD comments WG5 responses to CD comments (augments and supercedes J3's reply)
The new features of Fortran 2008 by John Reid (non normative)
TR 29113
TR 29113: "Further Interoperability of Fortran with C" (Long) (draft from November 2008). At the February 2010 meeting it was decided to rework the draft as outlines in C Interoperability Objectives; the official publication is deferred to November 2011.
Other Relevant Standards
OpenMP (Open MultiProcessing)
OpenMP specifications  for gfortran relevant and supported are 2.5 and 3.0.
POSIX
The IEEE standard covering Fortran 77 POSIX bindings is available online, though unfortunately only from locations with appropriate subscriptions to the IEEE server (e.g., many university networks). For those who do have such access, the link is:
POSIX Fortran 77 Language Interfaces (IEEE Std 1003.91992) (pdf)
Note IEEE 1003.91992 was withdrawn 6 February 2003. Some vendors provide their own way to access POSIX functions and make those available as module; for instance the IFPORT module of Intel or the f90_* modules of NAG. There also some compilerindependent efforts to make them accessible, e.g. Posix90 (doc), flibs' platform/files and directories, fortranposix.
ISO/IEC Project 22.24772: Guidance for Avoiding Vulnerabilities through Language Selection and Use
"The OWGV project is preparing comparative guidance spanning multiple programming languages, so that application developers will be better able to avoid the programming errors that lead to vulnerabilities in these languages and their attendant consequences. This guidance can also be used by developers to select source code evaluation tools that can discover and eliminate coding errors that lead to vulnerabilities."
Draft N0138 (20080818)
IEEE 754
The IEEE Standard for Binary FloatingPoint Arithmetic (IEEE 754) is the most widelyused standard for floatingpoint computation. Unfortunately, they are not freely available.
IEEE 7541985 Standard for Binary FloatingPoint Arithmetic
IEEE 8541987 Standard for RadixIndependent FloatingPoint Arithmetic
Latest publicly available draft of IEEE 7542008 (4 October 2006)
ISO/IEC 9899 Programming languages  C
The C standard is relevant for two parts: (a) the interoperability features of Fortran 2003/2008/interop TR and (b) for the C Preprocessor (CPP; "Preprocessing directives"), which gfortran supports as vendor extension.
'''JTC1/SC22/WG14'''  C (C drafts are also available there)