Landing: b36454ad89d2

Project / Subsystem

gcc / cobol

Date

2026-07-30

Author

James K. Lowden

Commit

b36454ad89d2b3c455e4f2033c860aa62549a289

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
cobol
patch_id
—
commit_hash
b36454ad89d2b3c455e4f2033c860aa62549a289
source_type
github
headline
cobol: New warning for REDEFINES placement, defaults to error
tldr
Introduces a new warning for REDEFINES not being the first item in a data definition, which defaults to an error.
author
James K. Lowden
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • cobol
  • • warning
  • • dialect
  • • data definition
discussion_id_link
—
bugzilla_pr
—
date
2026-07-30T00:00:00.000Z

A new warning, -Wredefines-first, is introduced for the COBOL compiler to flag instances where the REDEFINES clause is not the first item within a data item’s definition. By default, this condition is treated as an error, but the new warning flag allows developers to downgrade it to a warning or suppress it entirely. The ‘-dialect mf’ option automatically suppresses this warning.