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

            Bug ID: 119769
           Summary: FE: GnuCOBOL extension BINARY-C-LONG missing
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: cobol
          Assignee: unassigned at gcc dot gnu.org
          Reporter: simonsobisch at gnu dot org
  Target Milestone: ---

The sample program shows this:

       PROGRAM-ID. "NAT".
       DATA DIVISION.
       WORKING-STORAGE SECTION.
       01 c-long USAGE BINARY-C-LONG VALUE 1.
       PROCEDURE DIVISION.
       DISPLAY c-long GOBACK.

> error: DATA-ITEM 'BINARY-C-LONG' not found

This should be at least supported for -dialect gnu (GnuCOBOL) as it is commonly
used there to write portable code that defines it identical to GCC (or other
compiler's) definition of the C data type "long int".

I _think_ that should be an easy addition.

Reply via email to