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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Gaius Mulley <[email protected]>:

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

commit r17-4516-gd7a7947b89556aa3269d3b288ca7326584ae292f
Author: Gaius Mulley <[email protected]>
Date:   Mon Sep 21 11:42:15 2026 +0100

    PR modula2/127469: ICE when compiling code containing aggregate record
using an array field

    This patch checks for a NulSym type during WalkConvert PCSymBuild
    and ignores it.  The NulSym type presented to BuildConstructor in
    M2Quads generates an error message at the typename or '{' if the
    typename is absent.  It would be good to spell check the typename
    at some future point.

    gcc/m2/ChangeLog:

            PR modula2/127469
            * gm2-compiler/M2Quads.mod (BuildConstructor): Check for
            tok UnknownTokenNo and if not equal generate an error message
            at tok stating the type is unknown.
            * gm2-compiler/PCSymBuild.mod (WalkConvert): Check totype for
            NulSym and if so return FALSE.

    Signed-off-by: Gaius Mulley <[email protected]>

Reply via email to