https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117371
--- Comment #2 from Ludovic Brenta <ludo...@ludovic-brenta.org> --- The trigger for the bug is the "BY k" in the third loop at line 20. Removing these words removes the error reported (but obviously makes the program less efficient). -- Ludovic Brenta.