Landing: 44584e6be021

Project / Subsystem

gcc / fortran

Date

2026-09-21

Author

Mikael Morin

Commit

44584e6be021d9c5e25de9984182f03bba22eae8

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
fortran
patch_id
—
commit_hash
44584e6be021d9c5e25de9984182f03bba22eae8
source_type
github
headline
fortran: Make span_addressed_array return a boolean
tldr
Simplifies Fortran array handling by making `span_addressed_array` a boolean predicate.
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 span_addressed_array function to return a boolean value, clarifying its purpose as a predicate. Previously, it could return either NULL_TREE or its argument, leading to ambiguity in boolean contexts. This change separates the predicate logic from the value selection, improving code clarity and making the function’s intent more explicit, especially in gfc_get_dataptr_offset.