Skip to content

COBOL engine: a unit's extent runs over trailing column-7 D (debugging) lines when WITH DEBUGGING MODE is off #4392

Closed

Description

@squid-protocol

CBSA BANKDATA.cbl CDW010: the engine's extent is L1407-1436. The answer key, tree-sitter-cobol-enterprise and Che4z all give L1407-1433. Lines 1435-1436 are D lines ( D DISPLAY 'WS-DT-REM' ...), and the program's SOURCE-COMPUTER ... WITH DEBUGGING MODE (line 39) is commented out, so those lines are comments. The engine does not otherwise read D lines as code: CREACC's D MOVEs (lines 522 and 688) have no data_move rows. Only the unit end counts them. #4318's cause list mentions this as part of engine_unit_end_counts_noncode_lines ("the PL/I and D-line parts may deserve their own issue"), but no issue tracks it.

Acceptance: without WITH DEBUGGING MODE, a D line neither starts nor extends a unit. With the mode on, it is code.

Found by the #4377 referee panel (first pass, PR #4384; engine ca152eb92b9b).

Activity

  1. added
    bug
    core-engine
    legacy-modernization
    priority: low
    on Oct 5, 2026
  2. added 3 commits that reference this issue on Oct 5, 2026
    15f9e49
    8789798
    8bad693
  3. added
    scope:core
    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

    bugcore-enginelegacy-modernizationpriority: lowscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions