Allocation Errors

The following errors can arise during allocation or deallocation of data space.

If the relevant ALLOCATE or DEALLOCATE includes a STAT = specifier, then an occurrence of any of the errors below will cause the STAT variable to become defined with the corresponding error number, instead of the error message being produced.

In the error messages, vartype is

array

a pointer to an array, an allocatable array, or a temporary array

character scalar

a pointer to a character scalar, an automatic character scalar, or a temporary character scalar

pointer

a pointer to a non-character scalar

 

Error

Message

491

vartype is already allocated.

492

vartype is not allocated.

493

vartype was not created by ALLOCATE.

494

Allocation of nnn bytes failed
or
Allocation of array with extent nnn failed
or
Allocation of array with element size nnn failed
or
Allocation of character scalar with element size nnn failed
or
Allocation of pointer with element size nnn failed.

495

Heap initialization failed.