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

            Bug ID: 119632
           Summary: section segments (cobol85) not implemented, "ignored"
                    -> raising compile error
           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: ---

testing NIST (executed from gnucobol source tree, using a modified gcobc and
manually adjusting EXEC85 to allow newcob.val to be found) showed that gcobol
_knows_ about section segments, but currently cannot ignore it (which it
should, with a warning message):

lib/OBIC2A.CBL:130:24: sorry, unimplemented: SECTION segment 30.               
                               was ignored
  130 | 013000 SECT-IC219-0001 SECTION 30.                                     
OBIC24.2
      |                        ^
lib/OBIC2A.CBL:144:24: sorry, unimplemented: SECTION segment 60.               
                               was ignored
  144 | 014400 SECT-IC219-0002 SECTION 60.                                     
OBIC24.2
      |                        ^
lib/OBIC2A.CBL:199:24: sorry, unimplemented: SECTION segment 80.               
                               was ignored
  199 | 019900 SECT-IC219-0003 SECTION 80.                                     
OBIC24.2
      |                        ^
Unexpected status 256 for module lib/OBIC2A.CBL

The message already says "ignored" and there should be a warning option for
that (either that specific or a general "-Wignored" one) which allows to raise
that to an error - but it shouldn't default to an error (not sure what the
return value of 256 means).

Reply via email to