Landing: 3e281ae5d6a8

Project / Subsystem

gcc / fortran

Date

2026-05-08

Author

Paul Thomas

Commit

3e281ae5d6a814585b884d693ef354e75bf12be7

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
fortran
patch_id
commit_hash
3e281ae5d6a814585b884d693ef354e75bf12be7
source_type
github
headline
Fortran: Allows access to coarray elements within modules.
tldr
The Fortran compiler now correctly handles access to coarray elements within modules.
author
Paul Thomas
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • fortran
  • coarray
  • module
  • parallel programming
discussion_id_link
bugzilla_pr
date
2026-05-08T00:00:00.000Z

The Fortran compiler had issues accessing coarray elements within modules due to namespace handling. This commit ensures correct namespace resolution when accessing coarray elements defined in modules. It also prevents symbol initialization outside of functions and ensures that the current namespace reflects the current procedure. A new test case, gfortran.dg/coarray/pr125051.f90, validates the fix.