Back to SPR List Previous Next
INTEGER*1 ARRAYs with odd numbers of elements can sometimes effect the next array.
Severe - Data loss Closed - Fixed Found:2002.20.32 05 APR 2004 Fixed:2002.20.34 07 APR 2004

DETAILS
 Integer*1 arrays with odd numbers of elements can effect the first element of
 an array defined immediately after.

 The example program is OK with INTEGER*1 ARRAY A (3) but produces bad results
 when the A array is size 5, 9, 13 etc.
EXAMPLE PROGRAM
 PROGRAM
 INTEGER*1 ARRAY A (5)
 INTEGER*4 ARRAY B (3)
 SET B * (2)
 SET A * (1)
 WRITE "A :" A(1) A(2) A(3)
 WRITE "B :" B(1) B(2) B(3)
 END PROGRAM

 Correct output:
   Start program translation
   Start program execution
   A :1 1 1
   B :2 2 2
   End program execution

 Bad output:
   Start program translation
   Start program execution
   A :1 1 1
   B :1 2 2
   End program execution
WORKAROUND
Set the second array after the first; or change the integer*1 to *2 or add an element to ensure the array has an even number of elements.
Back to SPR List Previous Next