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

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

commit r15-5411-gab7abf1db09519a92f4a02af30ed6b834264c45e
Author: Gaius Mulley <[email protected]>
Date:   Mon Nov 18 17:51:37 2024 +0000

    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.

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

Reply via email to