[Bug cobol/126613] New: cobol1: FR EXIT PROGRAM RETURNING

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

            Bug ID: 126613
           Summary: cobol1: FR EXIT PROGRAM RETURNING
           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: ---

... which is a common extension that sets the RETURN-CODE register / CALL .=
..
RETURNING value in the caller.

TEST.cob:25: error: syntax error, unexpected RETURNING
  105 |            EXIT PROGRAM RETURNING 776.
      |                         ^~~~~~~~~~


note that the standard only has RAISING exception-object-identifier (not
supported by any compiler)=