gcc 10 spits out the following warning ``` [590/952] Building Fortran object slycot/CMakeFiles/_wrapper.dir/src/MA02ID.f.o ../../../slycot/src/MA02ID.f:188:21: 184 | DO 90 J = 1, N+1 | 2 ...... 188 | DWORK(J-1) = DWORK(J-1) + TEMP | 1 Warning: Array reference at (1) out of bounds (0 < 1) in loop beginning at (2) ../../../slycot/src/MA02ID.f:188:34: 184 | DO 90 J = 1, N+1 | 2 ...... 188 | DWORK(J-1) = DWORK(J-1) + TEMP | 1 Warning: Array reference at (1) out of bounds (0 < 1) in loop beginning at (2) ../../../slycot/src/MA02ID.f:230:21: 226 | DO 160 J = 1, N+1 | 2 ...... 230 | DWORK(J-1) = DWORK(J-1) + TEMP | 1 Warning: Array reference at (1) out of bounds (0 < 1) in loop beginning at (2) ../../../slycot/src/MA02ID.f:230:34: 226 | DO 160 J = 1, N+1 | 2 ...... 230 | DWORK(J-1) = DWORK(J-1) + TEMP | 1 Warning: Array reference at (1) out of bounds (0 < 1) in loop beginning at (2) ``` These specific pieces of code are not used (no wrapper, not internally in SLICOT), but it looks plain wrong. Reporting this to not forget.
Activity
bnavigator commentedon May 1, 2020
Slycot/slycot/src/MA02ID.f
Lines 184 to 188 in 003a2af
Slycot/slycot/src/MA02ID.f
Lines 226 to 230 in 003a2af
The
70and140loops are inactive for1 > J-2because the iteration count is zero.repagh commentedon May 3, 2020
OK. Thanks, false alarm thus.