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

--- Comment #4 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:363382ac7c2b8f6a09415e905b349bb7eaeca38a

commit r15-5951-g363382ac7c2b8f6a09415e905b349bb7eaeca38a
Author: Gaius Mulley <gaiusm...@gmail.com>
Date:   Thu Dec 5 20:31:34 2024 +0000

    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.

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

Reply via email to