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

            Bug ID: 120786
           Summary: strange message for NOT=
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: cobol
          Assignee: unassigned at gcc dot gnu.org
          Reporter: simonsobisch at gnu dot org
  Target Milestone: ---

program-id.t.
data Division.
WORKING-STORAGE Section.
01  var  pic x.
PROCEDURE Division.
if var not= "a" display "fine".
goback.

leads to

t.cob:6:11: error: syntax error, unexpected '=', expecting class name or
OMITTED


(this does compile with MF and GnuCOBOL, haven't checked IBM)

Reply via email to