Run-Time Errors 657 Through 689

This section describes in detail Visual Fortran run-time errors 657 through 689.

In the following table, the first column lists error numbers returned to IOSTAT variables when an I/O error is detected.

The first line of the second column provides the message as it is displayed (following forrtl:), including the severity level, message number, and the message text. The following lines of the second column contain the status condition symbol (such as FOR$IOS_INCRECTYP) and an explanation of the message.

For information about severity levels, see the Introduction.

Number Severity Level, Number, and Message Text; Condition Symbol and Explanation
657 severe (657): DIM argument to SIZE out of range

FOR$IOS_F6702. The argument specified for DIM must be greater than or equal to 1, and less than or equal to the number of dimensions in the specified array. Consider the following:

  i = SIZE (array, DIM = dim) 
In this case, 1 <= dim <= n, where n is the number of dimensions in array.
658 severe (657): Undefined POINTER used as argument to ASSOCIATED function

FOR$IOS_F6703. A POINTER used as an argument to the ASSOCIATED function must be defined; that is, assigned to a target, allocated, or nullified.

659 severe (659): Reference to uninitialized POINTER

FOR$IOS_F6704. Except in an assignment statement, a pointer must not be referenced until it has been initialized: assigned to a target, allocated or nullified.

660 severe (660): Reference to POINTER which is not associated

FOR$IOS_F6705. Except in an assignment statement and certain procedure references, a pointer must not be referenced until it has been associated: either assigned to a target or allocated.

661 severe (661): Reference to uninitialized POINTER 'pointer'

FOR$IOS_F6706. Except in an assignment statement, a pointer must not be referenced until it has been initialized: assigned to a target, allocated or nullified.

662 severe (662): reference to POINTER 'pointer' which is not associated

FOR$IOS_F6707. Except in an assignment statement and certain procedure references, a pointer must not be referenced until it has been associated: either assigned to a target or allocated.

663 severe (663): Out of range: substring starting position 'pos' is less than 1

FOR$IOS_F6708. A substring starting position must be a positive integer variable or expression that indicates a position in the string: at least 1 and no greater than the length of the string.

664 severe (664): Out of range: substring ending position 'pos' is greater than string length 'len'

FOR$IOS_F6709. A substring ending position must be a positive integer variable or expression that indicates a position in the string: at least 1 and no greater than the length of the string.

665 severe (665): Subscript 'n' of 'str' (value 'val') is out of range ('first:last')

FOR$IOS_F6710. The subscript for a substring within a string is not a valid string position: at least 1 and no greater than the length of the string.

666 severe (666): Subscript 'n' of 'str' (value 'val') is out of range ('first:*')

FOR$IOS_F6711. The subscript for a substring within a string is not a valid string position: at least 1 and no greater than the length of the string.

667 severe (667): VECTOR argument to PACK has incompatible character length

FOR$IOS_F6712. The character length of elements in the VECTOR argument to PACK is not the same as the character length of elements in the array to be packed.

668 severe (668): VECTOR argument to PACK is too small

FOR$IOS_F6713. The VECTOR argument to PACK must have at least as many elements as there are true elements in MASK (the array that controls packing).

669 severe (669): SOURCE and PAD arguments to RESHAPE have different character lengths

FOR$IOS_F6714. The character length of elements in the SOURCE and PAD arguments to PACK must be the same.

670 severe (670): Element 'n' of SHAPE argument to RESHAPE is negative

FOR$IOS_F6715. The SHAPE vector specifies the shape of the reshaped array. Since an array cannot have a negative dimension, SHAPE cannot have a negative element.

671 severe (671): SOURCE too small for specified SHAPE in RESHAPE, and no PAD

FOR$IOS_F6716. If there is no PAD array, the SOURCE argument to RESHAPE must have enough elements to make an array of the shape specified by SHAPE.

672 severe (672): Out of memory

FOR$IOS_F6717. The system ran out of memory while trying to make the array specified by RESHAPE. If possible, reset your virtual memory size through the Windows Control Panel, or close unneccessary applications and deallocate all allocated arrays that are no longer needed.

673 severe (673): SHAPE and ORDER arguments to RESHAPE have different sizes ('size1' and 'size2')

FOR$IOS_F6718. ORDER specifies the order of the array dimensions given in SHAPE, and they must be vectors of the same size.

674 severe (674): Element 'n' of ORDER argument to RESHAPE is out of range ('range')

FOR$IOS_F6719. The ORDER argument specifies the order of the dimensions of the reshaped array, and it must be a permuted list of (1, 2, ..., n) where n is the highest dimension in the reshaped array.

675 severe (675): Value 'val' occurs twice in ORDER argument to RESHAPE

FOR$IOS_F6720. The ORDER vector specifies the order of the dimensions of the reshaped array, and it must be a permuted list of (1, 2, ..., n) where n is the highest dimension in the reshaped array. No dimension can occur twice.

676 severe (676): Impossible nextelt overflow in RESHAPE

FOR$IOS_F6721.

677 severe (677): Invalid value 'dim' for argument DIM for SPREAD of rank 'rank' source

FOR$IOS_F6722. The argument specified for DIM to SPREAD must be greater than or equal to 1, and less than or equal to one larger than the number of dimensions (rank) of SOURCE. Consider the following statement:

  result = SPREAD (SOURCE= array, DIM = dim, NCOPIES = k) 
In this case, 1 <= dim <= n + 1, where n is the number of dimensions in array.
678 severe (678): Complex zero raised to power zero

FOR$IOS_F6723. Zero of any type (complex, real, or integer) cannot be raised to zero power.

679 severe (679): Complex zero raised to negative power

FOR$IOS_F6724. Zero of any type (complex, real, or integer) cannot be raised to a negative power. Raising to a negative power inverts the operand.

680 severe (680): Impossible error in NAMELIST input

FOR$IOS_F6725.

681 severe (681):DIM argument to CSHIFT ('dim') is out of range

FOR$IOS_F6726. The optional argument DIM specifies the dimension along which to perform the circular shift, and must be greater than or equal to 1 and less than or equal to the number of dimensions in the array to be shifted. That is, 1 <= DIM <= n, where n is the number of dimensions in the array to be shifted.

682 severe (682): DIM argument ('dim') to CSHIFT is out of range (1:'n')

FOR$IOS_F6727. The optional argument DIM specifies the dimension along which to perform the circular shift, and must be greater than or equal to 1 and less than or equal to the number of dimensions in the array to be shifted. That is, 1 <= DIM <= n, where n is the number of dimensions in the array to be shifted.

683 severe (683): Shape mismatch (dimension 'dim') between ARRAY and SHIFT in CSHIFT

FOR$IOS_F6728. The SHIFT argument to CSHIFT must be either scalar or an array one dimension smaller than the shifted array. If an array, the shape of the SHIFT must conform to the shape of the array being shifted in every dimension except the one being shifted along.

684 severe (684): Internal error - bad arguments to CSHIFT_CA

FOR$IOS_F6729.

685 severe (685): Internal error - bad arguments to CSHIFT_CAA

FOR$IOS_F6730.

686 severe (686): DATE argument to DATE_AND_TIME is too short (LEN='len')

FOR$IOS_F6731. The character DATE argument must have a length of at least 8 to contain the complete value.

687 severe (687): TIME argument to DATE_AND_TIME is too short (LEN='len')

FOR$IOS_F6732. The character TIME argument must have a length of at least 10 to contain the complete value.

688 severe (688): ZONE argument to DATE_AND_TIME is too short (LEN='len')

FOR$IOS_F6733. The character ZONE argument must have a length of at least 5 to contain the complete value.

689 severe (689): VALUES argument to DATE_AND_TIME is too small ('size' elements)

FOR$IOS_F6734. The integer VALUES argument must be a one-dimensional array with a size of at least 8 to hold all returned values.