GCC Newspaper
JULY 29, 2026
Date
/
Architectures
Components
Topics
News & Policy
cobol

Cobol accepts parenthesized sign conditions and improves diagnostics

Cobol parser now accepts parenthesized sign conditions and provides better diagnostics for invalid device name usage.

The Cobol compiler’s parser has been updated to correctly accept sign conditions enclosed in parentheses, resolving an issue reported in PR126002. Additionally, new, specific diagnostics have been introduced to catch invalid uses of device names outside of a SELECT statement, improving error reporting for developers.

In Details

The Cobol parser, specifically parse.y and scan.l, now correctly handles parenthesized sign conditions and provides more specific diagnostics for erroneous device name usage outside of the SELECT context, addressing PR126002.

For Context
PR126002
A bug report related to the Cobol compiler's parsing of sign conditions.
sign condition
A conditional expression in Cobol that checks the sign (positive, negative, or zero) of a numeric data item.
device name
In the context of Cobol, refers to a name that identifies a specific I/O device or file.
SELECT statement
A Cobol statement used for file I/O operations, specifying the file to be accessed and associated actions.
Filed Under: cobolparserdiagnosticsbugfix