[Bug cobol/126614] New: cobol1: support for extended DISPLAY/ACCEPT (at least parsing)

simonsobisch at gnu dot org via Gcc-bugs <[email protected]> Mon, 03 Aug 2026 11:38:37 +0000
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D126614

            Bug ID: 126614
           Summary: cobol1: support for extended DISPLAY/ACCEPT (at least
                    parsing)
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: cobol
          Assignee: unassigned at gcc dot gnu.org
          Reporter: simonsobisch at gnu dot org
  Target Milestone: ---

many existing programs will use this, so at least _parsing_ it (any maybe
supporting a subset) would be very useful, even if it isn't in the "general
implementation plan of gcobol"

TEST.cob:241:30: error: syntax error, unexpected WITH
  241 |            ACCEPT X-FUNCTION WITH TIMEOUT AFTER 1.
      |                              ^~~~~
TEST.cob:312:24: error: syntax error, unexpected WITH
  312 |            DISPLAY " " WITH BLANK SCREEN.
      |                        ^~~~~
cobol1: error: failed compiling TEST.cob=