Landing: f4d32f612a3c

Project / Subsystem

gcc / fortran

Date

2026-09-29

Author

Jerry DeLisle

Commit

f4d32f612a3c43e9d0a861b7dae7bb67139c9ab0

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
fortran
patch_id
—
commit_hash
f4d32f612a3c43e9d0a861b7dae7bb67139c9ab0
source_type
github
headline
Fortran: Ensure dummy array span is created in owning function
tldr
Fixes an ICE in the Fortran frontend when a dummy array's span variable was incorrectly placed.
author
Jerry DeLisle
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • fortran
  • • compiler
discussion_id_link
—
bugzilla_pr
—
date
2026-09-29T00:00:00.000Z

The Fortran compiler’s translation process incorrectly created the ‘span’ variable for a dummy array within a contained procedure, rather than its owning function. This led to an internal compiler error (ICE) when the dummy array was first referenced from the contained procedure. The fix ensures the span variable is correctly associated with the host function, resolving the ICE and enabling proper handling of these array declarations.