https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117371

--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Gaius Mulley
<ga...@gcc.gnu.org>:

https://gcc.gnu.org/g:f43c2ee451c57025065c91fbdc067128e93d2ec4

commit r14-11059-gf43c2ee451c57025065c91fbdc067128e93d2ec4
Author: Gaius Mulley <gaiusm...@gmail.com>
Date:   Wed Dec 4 08:01:13 2024 +0000

    [PATCH] 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.

    (cherry picked from commit e37641458e9e1be1a81ff7fab4f4ab8398147d80)

    Signed-off-by: Gaius Mulley <gaiusm...@gmail.com>

Reply via email to