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

--- 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:6dbf0d252f69ab2924256e6778ba7dc55d5b6915

commit r14-9483-g6dbf0d252f69ab2924256e6778ba7dc55d5b6915
Author: Gaius Mulley <gaiusm...@gmail.com>
Date:   Thu Mar 14 19:09:34 2024 +0000

    PR modula2/114294 expression causes ICE

    This patch fixes an ICE when encountering an expression:
    1 + HIGH (a[0]).  The fix was to assign a type to the constant
    created by BuildConstHighFromSym in M2Quads.mod.

    gcc/m2/ChangeLog:

            PR modula2/114294
            * gm2-compiler/M2Quads.mod (BuildConstHighFromSym):
            Call PutConst to assign the type Cardinal in the result
            constant.

    gcc/testsuite/ChangeLog:

            PR modula2/114294
            * gm2/pim/pass/log: Removed.
            * gm2/pim/pass/highexp.mod: New test.

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

Reply via email to