diff options
author | Gaius Mulley <gaiusmod2@gmail.com> | 2024-12-07 14:04:44 +0000 |
---|---|---|
committer | Gaius Mulley <gaiusmod2@gmail.com> | 2024-12-07 14:04:44 +0000 |
commit | 41800372146f5ad15a8796b37f54965f78cc14fb (patch) | |
tree | 29c44fb06d48cb6acec18c662a23a393266f8857 /libcpp/include/cpplib.h | |
parent | 4abcf4ad38a4081f02ed09aed7892a3a6af61cbb (diff) | |
download | gcc-41800372146f5ad15a8796b37f54965f78cc14fb.zip gcc-41800372146f5ad15a8796b37f54965f78cc14fb.tar.gz gcc-41800372146f5ad15a8796b37f54965f78cc14fb.tar.bz2 |
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 <gaiusmod2@gmail.com>
Diffstat (limited to 'libcpp/include/cpplib.h')
0 files changed, 0 insertions, 0 deletions