Landing: f566fd3c966d
Project / Subsystem
gcc / fortran
Date
2026-08-15
Author
Mikael Morin
Commit
f566fd3c966da60a1cc7db15e0a17e926325949c
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- fortran
- patch_id
- —
- commit_hash
- f566fd3c966da60a1cc7db15e0a17e926325949c
- source_type
- github
- headline
- Make IS_CONTIGUOUS true for assumed-rank scalars [PR126895]
- tldr
- The Fortran intrinsic IS_CONTIGUOUS now correctly returns true for assumed-rank scalars with a zero rank at runtime.
- author
- Mikael Morin
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • fortran
- • intrinsic
- • language-feature
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-15T00:00:00.000Z
The Fortran intrinsic IS_CONTIGUOUS has been updated to correctly handle assumed-rank scalar arguments. If such an argument has a rank of zero at runtime, IS_CONTIGUOUS will now return true. This corrects a bug where the intrinsic incorrectly returned false due to a missing rank check in its span calculation.