GNU Fortran implements a number of extensions over standard Fortran. This chapter contains information on their syntax and meaning. There are currently two categories of GNU Fortran extensions, those that provide functionality beyond that provided by any standard, and those that are supported by GNU Fortran purely for backward compatibility with legacy compilers. By default, -std=gnu allows the compiler to accept both types of extensions, but to warn about the use of the latter. Specifying either -std=f95, -std=f2003, -std=f2008, or -std=f2018 disables both types of extensions, and -std=legacy allows both without warning. The special compile flag -fdec enables additional compatibility extensions along with those enabled by -std=legacy.
X
format descriptor without count fieldFORMAT
specificationsFORMAT
specificationsF
, G
and I
format descriptorsQ
exponent-letterLOGICAL
and INTEGER
valuesCONVERT
specifier%VAL
, %REF
and %LOC
STRUCTURE
and RECORD
UNION
and MAP
AUTOMATIC
and STATIC
attributes