next up previous contents
Next: Array Inquiry Intrinsics Up: Arrays Previous: Array I/O Example

 

Array Bound Violations

Attempting to operate past the end of an array is a common error:

The following example demonstrates a possible bound violation (if M tex2html_wrap_inline27213 ):

    REAL, DIMENSION(50) :: A
     ...
    DO I=1,M
      A(I) = A(I-1) + 1.0 ! refs A(0)
    END DO

For more information, click here gif


next up previous contents
Next: Array Inquiry Intrinsics Up: Arrays Previous: Array I/O Example

©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997
Not for commercial use.