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

--- Comment #3 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:585aa4065f1028c2fbfab55462e5e5e6b3c208c4

commit r15-7786-g585aa4065f1028c2fbfab55462e5e5e6b3c208c4
Author: Gaius Mulley <gaiusm...@gmail.com>
Date:   Sun Mar 2 19:04:37 2025 +0000

    PR modula2/119088 ICE when for loop accesses an unknown variable as the
iterator

    This patch fixes an ICE which occurs when a FOR statement attempts to
    use an undeclared variable as its iterator.

    gcc/m2/ChangeLog:

            PR modula2/119088
            * gm2-compiler/M2SymInit.mod (ConfigSymInit): Reimplement to
            defensively check for NulSym type.

    gcc/testsuite/ChangeLog:

            PR modula2/119088
            * gm2/pim/fail/tinyfor4.mod: New test.

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

Reply via email to