Invoking a Postmortem Report

A postmortem report may be invoked by any of the following:

Postmortem Report Conventions

The following conventions are used in postmortem output:

Example

In this example, the command line

prompt>ifc  -CB  -CU  -d4   sample.f

is used to compile the program that follows. When the program is executed, the postmortem report (follows the program) is output, since the subscript m to array num is out of bounds.

The Program

1 module arith
2 integer count
3 data count /0/
4
5 contains
6
7  subroutine add(k,p,m)
8   integer num(3),p
9
10   count = count+1
11   m = k+p
12   j = num(m)
13   return
14  end subroutine
15
16 end module arith
17
18 program dosums
19  use arith
20  type set
21    integer sum, product
22  end type set
23
24  type(set) ans
25
26  call add(9,6,ans%sum)
27
28 end program dosums

The Postmortem Report

Run-Time Error 406: Array bounds exceeded
In Procedure: arith$add
Diagnostics Entered From Subroutine arith$add Line 12
j       =   Not Assigned
k       =   9
m       =   15
num     =   Not Assigned, Not Assigned, Not Assigned
p       =   6
Module arith
arith.count = 1
Entered From MAIN PROGRAM  Line  26
ans%
  sum      =   15
  product  =   Not Assigned
arith.count = 1