Landing: a9299f6c4076
Project / Subsystem
gcc / fortran
Date
2026-09-21
Author
Mikael Morin
Commit
a9299f6c4076d25c38e050c455454b54cfaa9dd3
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- fortran
- patch_id
- —
- commit_hash
- a9299f6c4076d25c38e050c455454b54cfaa9dd3
- source_type
- github
- headline
- fortran: Copy array span from target descriptor in pointer assignments
- tldr
- Fixes array pointer assignments in Fortran to correctly copy the span from the target descriptor.
- author
- Mikael Morin
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • fortran
- • bugfix
- • pointer
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-21T00:00:00.000Z
This change addresses a bug in Fortran pointer assignments where the span of an array pointer was not correctly copied from its target descriptor. By marking the _data field of array pointer class containers with GFC_DECL_PTR_ARRAY_P, the compiler now ensures that the span is copied from the target descriptor, even for polymorphic arrays. This corrects issues related to derived types and ensures accurate array behavior.