Landing: 053bde6ca9b4

Project / Subsystem

gcc / fortran

Date

2026-06-04

Author

Paul Thomas

Commit

053bde6ca9b490c6426740f8e3168054c4a43463

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
fortran
patch_id
commit_hash
053bde6ca9b490c6426740f8e3168054c4a43463
source_type
github
headline
Fortran fixes a bug where `always_explicit` attribute was not copied.
tldr
A bug in Fortran's `gfc_copy_attr` prevented `always_explicit` from being copied, leading to incorrect array handling and potential garbage values.
author
Paul Thomas
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • fortran
  • bugfix
  • abi
  • correctness
discussion_id_link
bugzilla_pr
date
2026-06-04T00:00:00.000Z

This commit fixes a bug in the Fortran frontend where the always_explicit attribute was not copied during symbol duplication in submodules. This omission caused array constructors to be incorrectly passed as raw data pointers instead of proper array descriptors. Consequently, callers expecting assumed-shape dummy arguments would read garbage bounds, leading to runtime errors and incorrect program behavior.