Differences between revisions 97 and 98
Revision 97 as of 2016-11-12 18:36:17
Size: 9571
Editor: JanusWeil
Revision 98 as of 2016-12-04 22:04:11
Size: 9556
Editor: JanusWeil
Comment: Allocatable components of recursive type are supported now
Deletions are marked like this. Additions are marked like this.
Line 46: Line 46:
||Allocatable components ||<#ffaaaa>No, [[https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45516|PR45516]] || ||Allocatable components of recursive type ||<#bbddbb>'''Yes''' (since 7.0, 2016-10-25) ||

Chart of Fortran 2008 Features supported by GNU Fortran

When the question which Fortran 2003 features are implemented in which compiler, came up in comp.lang.fortran, the idea was born to create a chart of the features supported by the different compilers. The result was a list in Fortran Forum (see Fortran2003Status). With Fortran 2008 on the horizon, the list is being updated for Fortran 2008.

The listed items follow the sections in the following writeup:

The Fortran Forum articles:

A freely available version of the article can be found at:

Implemented 2008 feature in GNU Fortran compiler


Yes (since 6.0, 2015-08-05)


Yes (Single-image support since 4.6; multi-image support using OpenCoarrays (including the Fortran 2015 collective subroutines) since 5.1 except allocatable or pointer components of derived type coarrays)

Performance enhancements

do concurrent

Partial (since 4.7, 2011-09-08) (type-spec support (and concurrency) missing; PR44735)

Contiguous attribute

Yes (since 4.6, 2010-06-21), note: the is_contiguous intrinsic is still missing, PR45424

Simply contiguous arrays

Yes (rather a new concept/definition than a new feature thus 'yes'. gfortran uses since many versions similar checks to avoid copy-in/out; it is also used internally for constraint checking such as for CONTIGUOUS)

Data enhancements

Maximum rank

No, PR36825, cf. array descriptor update

Long integers


Allocatable components of recursive type

Yes (since 7.0, 2016-10-25)

Implied-shape array

Yes (since 4.6, 2010-08-13)

Pointer initialization

Yes (since 4.6, 2011-02-08)

Kind of a forall index

No, PR78219

Allocating a polymorphic variable

Yes (partial since 4.6, full since 7.0)

Accessing data objects

Accessing real and imaginary parts

No, PR40196

Pointer functions as lvalue

Yes (partial since 4.6, full since 6.0)


Finding a unit when opening a file

Yes (since 4.5, 2009-06-08)

g0 edit descriptor

Yes (since 4.4)

Unlimited format item

Yes (since 4.5, 2009-08-17)

Recursive input/output


Execution control

The block construct

Yes (since 4.5, 2009-09-29), but as experimental with some details missing

Exit statement

Yes (since 4.6, 2010-09-03)

Stop code

Yes (since 4.6, 2010-06)

Intrinsic procedures for bit processsing

Bit sequence comparison

Yes (since 4.6, 2010-09-08)

Combined shifting

Yes (since 4.6, 2010-09-08)

Counting bits

Yes (since 4.6, 2010-08-31; leadz/tailz since GCC 4.4)

Masking bits

Yes (since 4.6, 2010-09-08)

Shifting bits

Yes (since 4.6, 2010-09-08)

Merging bits

Yes (since 4.6, 2010-09-08)

Bit transformational functions

Yes (since 4.6, 2010-09-06)

Intrinsic procedures and modules

Storage size

Yes (since 4.6, 2010-07-08)

Selecting a real kind

Yes (since 4.6, 2010-06-25)

Hyperbolic intrinsic functions

Yes (since 4.5)

Bessel functions

Yes (since 4.6, 2010-08-21, the elemental functions since GCC 4.4)

Arc tangent function

Yes (since 4.5)

Error and gamma functions

Yes (since 4.5, 2009-05-16 including ERFC_SCALED in initialization expressions)

Euclidean vector norm

Yes (since 4.6, 2010-08-27)


Yes (since 4.6, 2010-08-27)

Execute command line

Yes (since 4.6, 2010-09-01)

Location of maximum or minimum value in an array

No (PR54613)

Find location in an array

No (PR54613)


Yes (since 4.7, 2011-06-16)

Module procedures

Yes (since 4.6, 2010-09-27)

Programs and procedures

Empty contains section


Internal procedure as an actual argument

Yes (since 4.6, 2010-09-03)

Generic resolution by pointer or allocatable attribute

Yes (since 4.8, 2012-10-06, PR45521)

Null pointer as a missing dummy argument

Yes (since 4.6, 2010-08-15)

Elemental procedures that are not pure

Yes (since 4.6, 2010-08-15)

Entry statement becomes obsolescent

Yes (since 4.6, 2010-06-25)

Unimplemented features -- based on the list in the "Introduction" of the F2008 standard

There is a large overlap with the No items in the table above.

  • Parallel execution: Coarrays
  • The DO CONCURRENT construct provides a means for the program to specify that individual loop iterations have no interdependencies.
  • The maximum rank has been increased to 15.
  • An allocatable component can be of recursive type.
  • Subscripts and nested implied-do limits inside a data-implied-do can be any constant expression instead of being limited to combinations of constants, implied-do variables, and intrinsic operations.
  • A FORALL index variable can have its type and kind explicitly declared within the construct.
  • A structure constructor can omit the value for an allocatable component.
  • SOURCE= in an ALLOCATE statement can give an array variable the bounds as well as the value of an expression.
  • The real and imaginary parts of a complex entity can be accessed independently with a component-like syntax.
  • Intrinsic assignment to an allocatable polymorphic variable is allowed.
  • A pointer function reference can denote a variable in any variable definition context.
  • Some restrictions on the use of dummy arguments in elemental subprograms have been removed.
  • The new intrinsic function FINDLOC searches an array for a value.
  • A BACK= argument has been added to the intrinsic functions MAXLOC and MINLOC.
  • ALLOCATABLE and POINTER attributes are used in generic resolution.
  • Procedureness of a dummy argument is used in generic resolution.

None: Fortran2008Status (last edited 2016-12-04 22:04:11 by JanusWeil)