Landing: 88f9e08f681d

Project / Subsystem

gcc / cobol

Date

2026-08-28

Author

James K. Lowden

Commit

88f9e08f681dd1f8ddf8fa8be076117705fac224

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
cobol
patch_id
—
commit_hash
88f9e08f681dd1f8ddf8fa8be076117705fac224
source_type
github
headline
Cobol: Improve lexing for LENGTH OF operator.
tldr
Cobol lexer now correctly identifies LENGTH OF to prevent it from being misinterpreted as an identifier.
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-08-28T00:00:00.000Z

The Cobol lexer’s pattern matching has been refined to prioritize the LENGTH OF operator. This ensures that ‘LENGTH’ is not incorrectly recognized as a data item name when it is followed by ‘OF’, preventing lexical analysis errors.