array subscript is above array bounds in LALSimInspiralPNCoefficients
With today's master version 04d22872 I'm seeing the following compile error on one of my computers. Strangely, git blame
says this code hasn't been touched since ced0d1d3 (HyungWon Lee 2017-12-24 12:37:08 +0900 2367).
This is on a non-reference OS, openSUSE Leap 15.1 64bit, with gcc 7.4.1. Last time I compiled on this system, and saw no such error, was on dec9b42a (2019-11-23), but I haven't kept track of whether there were any relevant compiler or library updates.
In file included from LALSimInspiralTaylorF2.c:38:0:
LALSimInspiralPNCoefficients.c: In function ‘eccentricityPhasing_F2’:
LALSimInspiralPNCoefficients.c:2367:35: error: array subscript is above array bounds [-Werror=array-bounds]
phaseOrder += (eccPNCoeffs[i][j][k]+53.6803271/3.9564000*log(16.0*v_power[2]))*v_power[j]*v0_power[k];
~~~~~~~~~~~^~~
LALSimInspiralPNCoefficients.c:2367:35: error: array subscript is above array bounds [-Werror=array-bounds]
LALSimInspiralPNCoefficients.c:2367:35: error: array subscript is above array bounds [-Werror=array-bounds]
LALSimInspiralPNCoefficients.c:2367:35: error: array subscript is above array bounds [-Werror=array-bounds]
LALSimInspiralPNCoefficients.c:2367:35: error: array subscript is above array bounds [-Werror=array-bounds]
LALSimInspiralPNCoefficients.c:2367:35: error: array subscript is above array bounds [-Werror=array-bounds]
cc1: all warnings being treated as errors
make[6]: *** [Makefile:1471: LALSimInspiralTaylorF2.lo] Error 1
make[6]: Leaving directory '/home/dkeitel/git/lvc/lalsuite/lalsimulation/lib'
make[5]: *** [Makefile:1574: all-recursive] Error 1
make[5]: Leaving directory '/home/dkeitel/git/lvc/lalsuite/lalsimulation/lib'
make[4]: *** [Makefile:1143: all] Error 2
make[4]: Leaving directory '/home/dkeitel/git/lvc/lalsuite/lalsimulation/lib'
make[3]: *** [Makefile:601: all-recursive] Error 1
make[3]: Leaving directory '/home/dkeitel/git/lvc/lalsuite/lalsimulation'
make[2]: *** [Makefile:501: all] Error 2
make[2]: Leaving directory '/home/dkeitel/git/lvc/lalsuite/lalsimulation'
make[1]: *** [Makefile:415: all-recursive] Error 1
make[1]: Leaving directory '/home/dkeitel/git/lvc/lalsuite'
make: *** [Makefile:352: all] Error 2
``