Landing: fbc358491eac
Project / Subsystem
gcc / fortran
Date
2026-08-13
Author
Mikael Morin
Commit
fbc358491eac26f6680d738c59c9ce62564988f6
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- fortran
- patch_id
- —
- commit_hash
- fbc358491eac26f6680d738c59c9ce62564988f6
- source_type
- github
- headline
- Fortran collective subroutines shared memory implementation fixes element size.
- tldr
- Corrects element size calculation in Fortran's shared memory collective subroutines to prevent incorrect data.
- author
- Mikael Morin
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • fortran
- • coarray
- • correctness
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-13T00:00:00.000Z
This commit fixes an issue in the shared memory implementation of Fortran’s collective subroutines where the array descriptor’s ‘span’ field was incorrectly used as the element size. This larger-than-actual size estimate led to memory over-allocation and, crucially, a mismatch in element indexing between the collective subroutine and its packing/unpacking functions, resulting in corrupted data. The fix uses the correct ‘element length’ field instead.