https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126613

            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)

Reply via email to