Landing: 6e6249fc9e99

Project / Subsystem

gcc / fortran

Date

2026-09-11

Author

Jerry DeLisle

Commit

6e6249fc9e9932909089bc5b8cb3618650c9e662

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
fortran
patch_id
—
commit_hash
6e6249fc9e9932909089bc5b8cb3618650c9e662
source_type
github
headline
Fortran intrinsics NUM_IMAGES and IMAGE_INDEX now support TEAM_NUMBER keyword.
tldr
NUM_IMAGES and IMAGE_INDEX intrinsics in Fortran now correctly support the TEAM_NUMBER keyword for specifying teams in coarray operations.
author
Jerry DeLisle
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • fortran
  • • compiler
  • • coarray
  • • parallelism
discussion_id_link
—
bugzilla_pr
—
date
2026-09-11T00:00:00.000Z

This commit updates the Fortran compiler to correctly handle the TEAM_NUMBER keyword for the NUM_IMAGES and IMAGE_INDEX intrinsic procedures. Previously, these procedures shared a single dummy argument for team-related information, preventing the use of keywords for different team arguments and leading to incorrect behavior with certain standard versions. The change introduces separate, optional dummy arguments for TEAM (of type TEAM_TYPE) and TEAM_NUMBER (of type INTEGER), ensuring proper keyword support and diagnostics for Fortran 2018 coarray features.