Landing: 3d8093d7cb7a

Project / Subsystem

gcc / cobol

Date

2026-07-09

Author

James K. Lowden

Commit

3d8093d7cb7acb98288657ae34a9c99f8fd5a14c

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
cobol
patch_id
commit_hash
3d8093d7cb7acb98288657ae34a9c99f8fd5a14c
source_type
github
headline
cobol: Improve TYPE reference checking and define YYLOCATION_PRINT
tldr
Cobol parser improved to prevent invalid TYPE references and correctly handle user-defined location types for error reporting.
author
James K. Lowden
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • cobol
  • parser
discussion_id_link
bugzilla_pr
date
2026-07-09T00:00:00.000Z

The GCC cobol front-end has been updated to enhance error checking and parser robustness. It now prevents invalid references to TYPEs and provides more informative diagnostic messages. Additionally, it defines the YYLOCATION_PRINT macro to properly handle user-defined cbl_loc_t location types, improving error reporting accuracy.