Landing: aa4345370bf4

Project / Subsystem

gcc / cobol

Date

2026-09-17

Author

Xavier Del Campo Romero

Commit

aa4345370bf4fb1077b1559c0f8a17e6b90b2b41

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
cobol
patch_id
—
commit_hash
aa4345370bf4fb1077b1559c0f8a17e6b90b2b41
source_type
github
headline
cobol: Set loc also for numeric literals BY REFERENCE
tldr
Cobol compiler now tracks locations for BY REFERENCE numeric literals.
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 ensures that the Cobol compiler sets the correct source code location for numeric literals used with the BY REFERENCE clause. Previously, location data could be missing or invalid for such literals, leading to unhelpful diagnostics. This fix improves error reporting by accurately pinpointing the location of BY REFERENCE numeric literals.