[Bug cobol/126496] cobol1: non-documented non-standard directive $END-IF not handled (+ word split issue)

"cvs-commit at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
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 <[email protected]>:

https://gcc.gnu.org/g:7a320f883fe3cbaa0ce0003d6a4eb3fc043d2e49

commit r17-2834-g7a320f883fe3cbaa0ce0003d6a4eb3fc043d2e49
Author: James K. Lowden <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.