Landing: b95305d39fcf
Project / Subsystem
gcc / cobol
Date
2026-07-06
Author
James K. Lowden
Commit
b95305d39fcf230573a6cc3f56196b8002ef170c
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- cobol
- patch_id
- —
- commit_hash
- b95305d39fcf230573a6cc3f56196b8002ef170c
- source_type
- github
- headline
- COBOL: Prevent crash on invalid refmod literal (PR126104)
- tldr
- Fixes a crash in the COBOL compiler when encountering invalid `refmod` literals.
- author
- James K. Lowden
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • cobol
- • compiler
- • parser
- • bugfix
- discussion_id_link
- github:gcc-mirror/gcc#126104
- bugzilla_pr
- —
- date
- 2026-07-06T00:00:00.000Z
This commit addresses a crash in the COBOL compiler that occurred when processing invalid refmod literals. A specific check in literal_refmod_valid within parse.y has been modified to prevent dereferencing a NULL pointer, resolving the issue reported in PR126104.