RNF7542

Parameter cannot be passed by reference when it can be changed during the call.

30

Cause . . . . . : The following types of parameters cannot be passed by reference when they can be changed during the call:

The statement is ignored.

Recovery . . . : Change the parameter to a field name that can be modified or if the parameter is an array, ensure that it is not non-contiguous. Compile again.

Technical description . . . . . . . . : A non-contiguous array is an array whose elements are not directly adjacent in storage. This occurs when a subfield is defined using keyword OVERLAY where the parameter to OVERLAY is an array and the length of the subfield is less than the length of the overlaid array.

Any parameters in a *ENTRY PLIST can be changed during the call; parameters defined in prototypes can be changed during the call if neither the CONST nor VALUE keywords are used on the prototype.