[Bug cobol/126496] cobol1: non-documented non-standard directive $END-IF not handled (+ word split issue)
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 30 21:10:53 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126496
--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by James K. Lowden <jklowden@gcc.gnu.org>:
https://gcc.gnu.org/g:7a320f883fe3cbaa0ce0003d6a4eb3fc043d2e49
commit r17-2834-g7a320f883fe3cbaa0ce0003d6a4eb3fc043d2e49
Author: James K. Lowden <jklowden@cobolworx.com>
Date: Thu Jul 30 15:16:39 2026 -0400
cobol: Relax parsing restrictions for void sentences and MF $END-IF.
Accept multiple consecutive periods as empty statements. Accept
undocumented $END-IF under -dialect mf without comment.
gcc/cobol/ChangeLog:
PR cobol/126495
PR cobol/126496
* gcobol.1: Update manual to reflect new syntax.
* parse.y: Allow void sentence and increment s/r expected count to
7.
* scan.l: Lex $END-IF, optionally, as $END.
More information about the Gcc-bugs
mailing list