Landing: d81f2cb42b41
Project / Subsystem
gcc / gcc
Date
2026-05-19
Author
Thomas Koenig
Commit
d81f2cb42b418484050599906f41978ed5005eaa
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc
- patch_id
- —
- commit_hash
- d81f2cb42b418484050599906f41978ed5005eaa
- source_type
- github
- headline
- Fortran: Fixes data corruption with allocatable array components.
- tldr
- This commit resolves a data corruption issue in Fortran when passing non-contiguous slices of allocatable arrays to procedures expecting g77-style arguments.
- author
- Thomas Koenig
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • fortran
- • bugfix
- • array
- • memory management
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-19T00:00:00.000Z
This commit fixes a data corruption bug in the Fortran front-end that occurred when passing a non-contiguous slice of an allocatable array component to a procedure expecting a g77-style argument. The issue was caused by incorrect deallocation during inline packing. The fix ensures that the argument is not deallocated when passing a g77-style array. This is a regression affecting all supported releases.