Landing: e7140c283c74
Project / Subsystem
gcc / cobol
Date
2026-07-08
Author
James K. Lowden
Commit
e7140c283c74706e75d0e515cd824c7043705234
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- cobol
- patch_id
- —
- commit_hash
- e7140c283c74706e75d0e515cd824c7043705234
- source_type
- github
- headline
- cobol: Add diagnostic for SORT without defined key
- tldr
- Cobol parser now generates a specific error diagnostic for SORT statements missing a defined key, preventing crashes.
- author
- James K. Lowden
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • cobol
- • parser
- • error handling
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-08T00:00:00.000Z
The GCC COBOL front-end now provides a specific error diagnostic when a SORT statement is used without a key clause being defined. Previously, this situation could lead to a parser crash. This change (PR cobol/126106) improves error handling by reporting a clear message instead of failing abruptly.