Skip to content

det: a relation's NOT at the end of a line, its operator on the next, crashes the PROCEDURE DIVISION parse #4682

Closed

Description

@squid-protocol

The det translator crashes (ExprError "the PROCEDURE DIVISION does not parse at line N") instead of translating or refusing by name when a relation's NOT ends a source line and its operator starts the next:

           IF D0 NOT
               < 3
               DISPLAY 'Y'
           END-IF

IF D0 NOT < / 3 (the operator on the first line) translates. GnuCOBOL (cobc 3.1.2 -std=ibm) compiles both. Found by the P-scaled fuzz of #4669 / #4670 (seeds whose generated conditions wrap after NOT); not P-related. Acceptance: translated (or refused by name, #4411), a test pins it.

Part of #4270.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    legacy-modernization
    on Oct 8, 2026
  2. squid-protocol commented on Oct 8, 2026

    @squid-protocol
    OwnerAuthor

    Looks like a duplicate of #4674 (same shape: a relation's NOT at end of line with its operator on the next line), which draft PR #4680 (stmt._join_not_breaks) fixes. Leaving open for the owner to close once #4680 merges; if a shape here isn't covered by #4680's tests, note it.

    🤖 Generated with Claude Code

  3. added a commit that references this issue on Oct 11, 2026
    b6faf2c
  4. added
    scope:sweep
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buglegacy-modernizationpriority: mediumscope:sweep

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions