Landing: df10305c11ff
Project / Subsystem
gcc / fortran
Date
2026-09-21
Author
Mikael Morin
Commit
df10305c11ffc29f62844c85929c6876afd411ab
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- fortran
- patch_id
- —
- commit_hash
- df10305c11ffc29f62844c85929c6876afd411ab
- source_type
- github
- headline
- fortran: Move span declaration guess within array ref construction
- tldr
- Refactors Fortran array reference construction to improve span guessing.
- author
- Mikael Morin
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • fortran
- • refactor
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-21T00:00:00.000Z
The Fortran compiler has refactored the process of guessing the declaration for array spans. The logic for guessing the decl for a span has been moved from a function argument to within the build_array_ref function body. This change ensures that a better default declaration is guessed for span-addressed arrays, preventing regressions that occurred when a previously provided declaration interfered with the default guessing mechanism.