https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98701
--- Comment #5 from Steve Kargl <sgk at troutmask dot apl.washington.edu> --- On Sat, Jan 16, 2021 at 12:41:56AM +0000, Bahram.shahrooz at uc dot edu wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98701 > > --- Comment #4 from Bahram.shahrooz at uc dot edu --- > I compiled with the suggested options (below) and now the code gives the same > result as g77. > > -fcheck=all -ffpe-trap=zero,invalid > > Things look good now! > Those options should not fix the code. Those should find the error. If you compile without these options, do you then get wrong results. Also, what do you expect. On my system, I see Moment Axial_Load 1470.43183 134.34887 1564.87796 144.02005 1643.96121 152.13968 1708.47908 158.75645 1749.07356 162.94978 for the first few lines.