https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117948
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Gaius Mulley <ga...@gcc.gnu.org>: https://gcc.gnu.org/g:6385000d36a8b0b9dce0b8dc92e101dfcc584ec5 commit r14-11071-g6385000d36a8b0b9dce0b8dc92e101dfcc584ec5 Author: Gaius Mulley <gaiusm...@gmail.com> Date: Sat Dec 7 15:56:21 2024 +0000 [PATCH] 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. (cherry picked from commit 41800372146f5ad15a8796b37f54965f78cc14fb) Signed-off-by: Gaius Mulley <gaiusm...@gmail.com>