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

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

https://gcc.gnu.org/g:2611af6380343caf340a7b32d4e99b38c7a47367

commit r16-9952-g2611af6380343caf340a7b32d4e99b38c7a47367
Author: Gaius Mulley <[email protected]>
Date:   Fri Nov 13 08:24:21 2026 +0000

    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.

    (cherry picked from commit d7a7947b89556aa3269d3b288ca7326584ae292f)

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

Reply via email to