The -syntax
switch directs KAP to check for compliance
with certain syntactic rules. Using a dialect switch can prevent a
construct being translated differently than expected by a user who
is familiar with a different implementation of Fortran. The default
is to accept the superset of the ANSI Fortran 77 standard defined by
Digital Fortran, which includes many common Fortran 77 extensions.
See the Digital Fortran Language Reference Manual for
differences in the dialects.
The -syntax
switch has settings as follows:
v
- Accept the extensions and interpretations
of Digital Fortran.
a
- Check for strict compliance with
the ANSI Fortran standard. Warning and error messages are
issued for syntax that does not conform to the standard. With
-syntax=a
, syntax errors are issued for array
references without subscripts.