https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117371
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Gaius Mulley <ga...@gcc.gnu.org>: https://gcc.gnu.org/g:e37641458e9e1be1a81ff7fab4f4ab8398147d80 commit r15-5407-ge37641458e9e1be1a81ff7fab4f4ab8398147d80 Author: Gaius Mulley <gaiusm...@gmail.com> Date: Mon Nov 18 16:34:42 2024 +0000 PR modula2/117371: Add check for zero step in for loop This patch is a follow on from PR modula2/117371 which could include a check to enforce the ISO restriction on a zero for loop step. gcc/m2/ChangeLog: PR modula2/117371 * gm2-compiler/M2GenGCC.mod (PerformLastForIterator): Add check for zero step value and issue an error message. gcc/testsuite/ChangeLog: PR modula2/117371 * gm2/iso/fail/forloopbyzero.mod: New test. Signed-off-by: Gaius Mulley <gaiusm...@gmail.com>