Landing: 628c2b735f48

Project / Subsystem

gcc / cobol

Date

2026-09-17

Author

Xavier Del Campo Romero

Commit

628c2b735f489d75a24a2c280e318951544350f0

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
cobol
patch_id
—
commit_hash
628c2b735f489d75a24a2c280e318951544350f0
source_type
github
headline
cobol: Print arg loc rather than rule loc
tldr
Cobol compiler now shows argument location for BY CONTENT expression errors.
author
Xavier Del Campo Romero
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • cobol
  • • compiler
  • • diagnostics
discussion_id_link
—
bugzilla_pr
—
date
2026-09-17T00:00:00.000Z

This commit refactors the Cobol compiler’s error reporting for ‘BY CONTENT expression’ issues, ensuring it displays the specific argument’s location rather than the location of the parsing rule. This provides more precise feedback to developers when a BY CONTENT expression is used incorrectly, such as when the ‘-dialect ibm’ option is not enabled.