Landing: 6658c2347d4a

Project / Subsystem

gcc / fortran

Date

2026-07-03

Author

Mikael Morin

Commit

6658c2347d4a88d82e80f44a450b14dc7287bcef

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
fortran
patch_id
commit_hash
6658c2347d4a88d82e80f44a450b14dc7287bcef
source_type
github
headline
fortran: Don't reuse original descriptors for packed arrays [PR125998]
tldr
Fixes Fortran packed array descriptor creation to ensure correct memory layout and bounds.
author
Mikael Morin
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • fortran
  • gfortran
  • array
  • descriptor
discussion_id_link
bugzilla_pr
date
2026-07-03T00:00:00.000Z

This commit corrects how GCC’s Fortran frontend, gfortran, handles descriptors for packed arrays, particularly in the context of array parameters and transposed arrays. It prevents the reuse of original array descriptors, which could lead to incorrect memory layouts (e.g., using transposed data for non-transposed packed arrays). The changes ensure that new descriptors are created and that bounds, strides, and offsets are correctly calculated based on the packed array’s actual dimensions and layout, addressing issues related to PR97592 and PR125998.