You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
det translator: NOT at the end of a line before its relational operator fails the whole PROCEDURE DIVISION #4674
bugUnintended behavior or logic failure in the enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: mediumscope:sweepCompletes a class the burned estates already touch (siblings); blocks no program
A relational operator after NOT on the next source line makes the det translator reject the whole PROCEDURE DIVISION (ExprError: the PROCEDURE DIVISION does not parse at line N), so the program gets no port at all. GnuCOBOL (-std=ibm) compiles it.
Minimal repro (found by the #4655 randomized differential run; #4287's run hit the same, seeds 89/91/97):
PROCEDURE DIVISION.
IF S3 NOT<3+ B0 *- D0
DISPLAY'Y'END-IF
IF S3 NOT < 3 on one line, or the break after < 3, translate fine. E.parse_condition accepts the joined text, so the break is lost in statement splitting (det/stmt.py / source.py), not in the expression parser.
Proposal
Find where a line ending in NOT is cut off from its operator (likely the verb/statement-boundary scan) and keep NOT + relational operator together across a line break; add the repro as a test.
bugUnintended behavior or logic failure in the enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: mediumscope:sweepCompletes a class the burned estates already touch (siblings); blocks no program
Activity
det: NOT split from its operator by a line break, at any word boundar…