Landing: 4487236ddfbd

Project / Subsystem

gcc / cobol

Date

2026-07-29

Author

James K. Lowden

Commit

4487236ddfbd387287ff217a40ae675511dcdb00

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
cobol
patch_id
—
commit_hash
4487236ddfbd387287ff217a40ae675511dcdb00
source_type
github
headline
Accept newline in COBOL reference modification patterns.
tldr
COBOL lexer now correctly handles newlines within reference modification patterns.
author
James K. Lowden
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • cobol
  • • lexer
  • • parsing
  • • bugfix
discussion_id_link
—
bugzilla_pr
—
date
2026-07-29T00:00:00.000Z

GCC’s COBOL front-end has been updated to correctly parse reference modification patterns that may include newline characters. This involved modifying the lexer’s recognition rules and fixing an is_refmod() function to ensure proper handling of these patterns, alongside other minor lexer and parser corrections for compatibility and robustness.