Landing: 9d8f85ca3335
Project / Subsystem
gcc / cobol
Date
2026-07-28
Author
James K. Lowden
Commit
9d8f85ca3335a49aba5177620d7f23ebdc88c7a2
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- cobol
- patch_id
- —
- commit_hash
- 9d8f85ca3335a49aba5177620d7f23ebdc88c7a2
- source_type
- github
- headline
- Cobol lexer cleans up dangerous trailing context warnings.
- tldr
- Cobol lexer rewritten to avoid dangerous trailing context warnings and improve PICTURE scanning.
- author
- James K. Lowden
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • cobol
- • lexer
- • parsing
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-28T00:00:00.000Z
The Cobol lexer has been refactored to eliminate “dangerous trailing context” warnings by restructuring how it scans PICTURE clauses. This change improves the robustness of the lexer and ensures the parser uses the new token sequence for validation. It also includes a fix for RT 3580 and removes an unnecessary include.