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

--- Comment #5 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:7dff53cb7bff5f523390fd4da5b32f3d6b300e2d

commit r14-11067-g7dff53cb7bff5f523390fd4da5b32f3d6b300e2d
Author: Gaius Mulley <gaiusm...@gmail.com>
Date:   Fri Dec 6 13:06:58 2024 +0000

    [PATCH] PR modula2/117904: cc1gm2 ICE when compiling a const built from VAL
and SIZE

    This patch fixes an ICE which occurs when a positive ZType constant
    increment is used during a FOR loop.

    gcc/m2/ChangeLog:

            PR modula2/117904
            * gm2-compiler/M2GenGCC.mod (PerformLastForIterator): Add call to
            BuildConvert when increment is > 0.

    gcc/testsuite/ChangeLog:

            PR modula2/117904
            * gm2/iso/pass/forloopbyconst.mod: New test.

    (cherry picked from commit 363382ac7c2b8f6a09415e905b349bb7eaeca38a)

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

Reply via email to