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

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

https://gcc.gnu.org/g:5902ea4a341419d243725e7a52800e297159ff9d

commit r14-11060-g5902ea4a341419d243725e7a52800e297159ff9d
Author: Gaius Mulley <[email protected]>
Date:   Wed Dec 4 09:03:36 2024 +0000

    [PATCH] PR modula2/117660: Errors referring to variables of type array
could display full declaration

    This patch ensures that the tokens defining the full declaration of an
    ARRAY type is stored in the symbol table and used during production of
    error messages.

    gcc/m2/ChangeLog:

            PR modula2/117660
            * gm2-compiler/P2Build.bnf (ArrayType): Update tok with the
            composite token produced during array type declaration.
            * gm2-compiler/P2SymBuild.mod (EndBuildArray): Create the
            combinedtok and store it into the symbol table.
            Also ensure combinedtok is pushed to the quad stack.
            (BuildFieldArray): Preserve typetok.
            * gm2-compiler/SymbolTable.def (PutArray): Rename parameters.
            * gm2-compiler/SymbolTable.mod (PutArray): Rename parameters.

    gcc/testsuite/ChangeLog:

            PR modula2/117660
            * gm2/iso/fail/arraymismatch.mod: New test.

    (cherry picked from commit ab7abf1db09519a92f4a02af30ed6b834264c45e)

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

Reply via email to