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

--- 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:41800372146f5ad15a8796b37f54965f78cc14fb

commit r15-6011-g41800372146f5ad15a8796b37f54965f78cc14fb
Author: Gaius Mulley <gaiusm...@gmail.com>
Date:   Sat Dec 7 14:04:44 2024 +0000

    PR modula2/117948: Forward procedure declaration should only be available
in ISO

    This patch restricts the forward procedure declaration to the ISO dialect.

    gcc/m2/ChangeLog:

            PR modula2/117948
            * gm2-compiler/P1Build.bnf (ForwardDeclaration): Pass token
            position of the FORWARD keyword to EndBuildForward.
            * gm2-compiler/P1SymBuild.def (EndBuildForward): New parameter
            forwardPos.
            * gm2-compiler/P1SymBuild.mod (EndBuildForward): Issue an error at
            forwardPos if the Iso boolean is false.

    gcc/testsuite/ChangeLog:

            PR modula2/117948
            * gm2/pim/fail/forward.mod: New test.

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

Reply via email to