Landing: 22d710cc5f40

Project / Subsystem

gcc / fortran

Date

2026-08-10

Author

Jerry DeLisle

Commit

22d710cc5f40d79aab104ec5fb5fe97386d56d8a

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
fortran
patch_id
—
commit_hash
22d710cc5f40d79aab104ec5fb5fe97386d56d8a
source_type
github
headline
Fixes coarray subobject cobound queries to prevent compiler ICEs.
tldr
Corrects how the Fortran compiler queries cobounds for coarray subobjects, resolving internal compiler errors.
author
Jerry DeLisle
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • fortran
  • • compiler
  • • coarray
discussion_id_link
—
bugzilla_pr
—
date
2026-08-10T00:00:00.000Z

This commit resolves several internal compiler errors (ICEs) related to querying the cobounds of a subobject of a coarray in Fortran. According to the F2018 standard, such subobjects are coarrays themselves unless accessed through specific selectors. The compiler was not correctly handling these cases, leading to errors when querying cobounds. The fixes ensure that the compiler correctly identifies and queries the cobounds of the coarray base symbol, even when accessing its subobjects, and properly handles cases where the declaration itself might have been previously rejected.