Landing: cec7574ff3f1
Project / Subsystem
gcc / cobol
Date
2026-07-30
Author
James K. Lowden
Commit
cec7574ff3f1559066b209c1973a383efc341fb0
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- cobol
- patch_id
- —
- commit_hash
- cec7574ff3f1559066b209c1973a383efc341fb0
- source_type
- github
- headline
- cobol: Restore SECTION number warnings
- tldr
- Lexer now correctly recognizes and handles SECTION, restoring warnings for their usage.
- author
- James K. Lowden
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • cobol
- • lexer
- • parser
- • warning
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-30T00:00:00.000Z
This commit modifies the COBOL parser and lexer to correctly recognize the SECTION keyword. Previously, SECTION was not explicitly handled and could fall under a general NAME pattern, leading to incorrect parsing or lost warnings. This change ensures that SECTION is now treated as a distinct token, restoring expected warning behavior.