Landing: 322362ce5142
Project / Subsystem
gcc / fortran
Date
2026-08-16
Author
Jerry DeLisle
Commit
322362ce514228d5f9fcd3a06444b01425d665e6
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- fortran
- patch_id
- —
- commit_hash
- 322362ce514228d5f9fcd3a06444b01425d665e6
- source_type
- github
- headline
- Fortran: Emit static initializers for ISO_FORTRAN_ENV array constants in procedures.
- tldr
- Fixes initialization of ISO_FORTRAN_ENV array constants used within Fortran procedures.
- author
- Jerry DeLisle
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • fortran
- • compiler bugfix
- • initialization
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-16T00:00:00.000Z
An issue in the Fortran compiler caused array constants from ISO_FORTRAN_ENV to be uninitialized when used within procedures. Although these constants were marked TREE_STATIC for inlining, their static initializers were only generated for main programs or modules. This fix ensures that initializers are emitted regardless of the enclosing scope, correctly initializing these array constants within procedures.