A FORTRAN ALLOCATABLE array was used before being allocated.
FORTRAN ALLOCATABLE variables must acquire storage before they can be referenced. To allocate memory, use the ALLOCATE intrinsic function.
ID |
Observation |
Description |
---|---|---|
1 |
Bad memory access |
The place the variable was accessed |
integer, allocatable, dimension(:) :: a a(1) = 1 ! "a" is referenced before allocation print *,a(1) allocate(a(5)) a = 5 print *,a deallocate(a) end
Copyright © 2010, Intel Corporation. All rights reserved.