Landing: 13a8d18fdbb1

Project / Subsystem

gcc / cobol

Date

2026-09-17

Author

James K. Lowden

Commit

13a8d18fdbb15ed4669e59f50b0af7b67832cb18

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
cobol
patch_id
—
commit_hash
13a8d18fdbb15ed4669e59f50b0af7b67832cb18
source_type
github
headline
cobol: Recognize figurative constants for implicit PICTURE
tldr
COBOL parser now recognizes figurative constants for implicit PICTURE clauses.
author
James K. Lowden
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • cobol
  • • parsing
  • • compiler
discussion_id_link
—
bugzilla_pr
—
date
2026-09-17T00:00:00.000Z

This commit updates the COBOL compiler’s parser to correctly recognize figurative constants when an implicit PICTURE clause is present. This change affects how data fields are validated and updated, ensuring that figurative constants like ‘ZEROS’ or ‘SPACES’ are handled appropriately when they are assigned to variables without an explicitly defined PICTURE clause. The update_prior_invalid_field and field_add functions are modified to accommodate this.