As a general principle, this compiler will accept by default and without complaint many legacy features, extensions to the standard language, and features that have been deleted from the standard, so long as the recognition of those features would not cause a standard-conforming program to be rejected or misinterpreted.
Other non-standard features, which do conflict with the current standard specification of the Fortran programming language, are accepted if enabled by command-line options.
- Tabs in source
<>
as synonym for.NE.
and/=
$
and@
as legal characters in names- Initialization in type declaration statements using
/values/
- Kind specification with
*
, e.g.REAL*4
DOUBLE COMPLEX
- Signed complex literal constants
- DEC
STRUCTURE
,RECORD
,UNION
, andMAP
- Structure field access with
.field
NCHARACTER
type andNC
Kanji character literalsBYTE
as synonym forINTEGER(KIND=1)
- Quad precision REAL literals with
Q
X
prefix/suffix as synonym forZ
on hexadecimal literalsB
,O
,Z
, andX
accepted as suffixes as well as prefixes- Triplets allowed in array constructors
- Old-style
PARAMETER pi=3.14
statement without parentheses %LOC
,%VAL
, and%REF
- Leading comma allowed before I/O item list
- Empty parentheses allowed in
PROGRAM P()
- Missing parentheses allowed in
FUNCTION F
- Cray based
POINTER(p,x)
- Arithmetic
IF
. (Which branch should NaN take? Fall through?) ASSIGN
statement, assignedGO TO
, and assigned formatPAUSE
statement- Hollerith literals and edit descriptors
NAMELIST
allowed in the execution part- Omitted colons on type declaration statements with attributes
- COMPLEX constructor expression, e.g.
(x+y,z)
+
and-
before all primary expressions, e.g.x*-y
.NOT. .NOT.
acceptedNAME=
as synonym forFILE=
- Data edit descriptors without width or other details
D
lines in fixed form as comments or debug codeCONVERT=
on the OPEN and INQUIRE statementsDISPOSE=
on the OPEN and INQUIRE statements- Leading semicolons are ignored before any statement that could have a label
- The character
&
in column 1 in fixed form source is a variant form of continuation line. - Character literals as elements of an array constructor without an explicit type specifier need not have the same length; the longest literal determines the length parameter of the implicit type, not the first.
- Outside a character literal, a comment after a continuation marker (&) need not begin with a comment marker (!).
- Classic C-style /comments/ are skipped, so multi-language header files are easier to write and use.
- $ and \ edit descriptors are supported in FORMAT to suppress newline output on user prompts.
- REAL and DOUBLE PRECISION variable and bounds in DO loops
- Integer literals without explicit kind specifiers that are out of range for the default kind of INTEGER are assumed to have the least larger kind that can hold them, if one exists.
- BOZ literals can be used as INTEGER values in contexts where the type is unambiguous (including the right hand sides of assigments and initializations of INTEGER entities).
- C-style backslash escape sequences in quoted CHARACTER literals (but not Hollerith) [-fbackslash]
- Logical abbreviations
.T.
,.F.
,.N.
,.A.
,.O.
, and.X.
[-flogical-abbreviations] .XOR.
as a synonym for.NEQV.
[-fxor-operator]
.LG.
as synonym for.NE.
REDIMENSION
- Allocatable
COMMON
- Expressions in formats
ACCEPT
as synonym forREAD *
TYPE
as synonym forPRINT
ARRAY
as synonym forDIMENSION
VIRTUAL
as synonym forDIMENSION
ENCODE
andDECODE
as synonyms for internal I/OIMPLICIT AUTOMATIC
,IMPLICIT STATIC
- Default exponent of zero, e.g.
3.14159E
- Characters in defined operators that are neither letters nor digits
B
suffix on unquoted octal constantsZ
prefix on unquoted hexadecimal constants (dangerous)T
andF
as abbreviations for.TRUE.
and.FALSE.
in DATA (PGI/XLF)- Use of host FORMAT labels in internal subprograms (PGI-only feature)
- ALLOCATE(TYPE(derived)::...) as variant of correct ALLOCATE(derived::...) (PGI only)
- USE association of a procedure interface within that same procedure's definition
- After "TYPE,EXTENDS(T1)::T2;...", the nonstandard structure constructor T2(T1(x)) is accepted by PGI/GNU/Intel. Use T2(T1=T1(x)) or T2(x) instead.
- NULL() as a structure constructor expression for an ALLOCATABLE component (PGI).
- Conversion of LOGICAL to INTEGER.
- IF (integer expression) THEN ... END IF (PGI/Intel)
- Comparsion of LOGICAL with ==/.EQ. rather than .EQV. (also .NEQV.) (PGI/Intel)
- Procedure pointers in COMMON blocks (PGI/Intel)