Landing: 21e2dbfb75aa

Project / Subsystem

gcc / cobol

Date

2026-09-24

Author

James K. Lowden

Commit

21e2dbfb75aa269f2219e46cb8481e87b96e6615

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
cobol
patch_id
—
commit_hash
21e2dbfb75aa269f2219e46cb8481e87b96e6615
source_type
github
headline
Cobol PICTURE validation uses automaton for edited types.
tldr
Cobol PICTURE validation for edited types now uses an automaton, reporting errors in the lexer.
author
James K. Lowden
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • cobol
  • • compiler
  • • lexer
  • • parser
discussion_id_link
—
bugzilla_pr
—
date
2026-09-24T00:00:00.000Z

The Cobol compiler’s PICTURE clause validation for edited types has been significantly refactored. It now employs an automaton to validate the PICTURE syntax within the lexer, providing error reporting earlier in the compilation process. The parser receives a new PICTURE token, and the verbatim picture string is retained for later codegen interpretation.