The command option -d{n} generates the additional information required for a list of the current values of variables to be output when certain runtime errors occur. Diagnostic reports are generated by the following:
input/output errors an invalid reference to a pointer or an allocatable array (if -CA option selected)
subscripts out of bounds (if -CB option selected)
an invalid array argument to an intrinsic procedure (if -CS option selected)
use of unassigned variables (if -CU option selected)
argument mismatch (if -CV option selected)
invalid assigned labels
a call to the abort routine
certain mathematical errors reported by intrinsic procedures
hardware detected errors
The level of output is progressively controlled by n, as follows:
n=0 (or n omitted) |
Displays only the procedure name and the number of the line at which the failure occurred. |
n=1 |
Reports scalar variables local to program active units. |
n=2 |
Reports local and COMMON scalars. |
n>2 |
Reports the first n elements of local and COMMON arrays and all scalars. |
The appropriate error message will be output on stderr, and (if selected) a postmortem report will be produced.
Each scalar or array will be displayed on a separate line in a form appropriate to the type of the variable. Thus, for example, variables of type integer will be output as integer values, and variables of type complex will be output as complex values.
The postmortem report will not include those program units which are currently active, but which have not been compiled with the -d{n} option. If no active program unit has been compiled with the -d{n} option then no postmortem report will be produced.
Note
Using the -d{n} option for postmortem reports disables
optimization.