Landing: 35dec12b401e

Project / Subsystem

gcc / fortran

Date

2026-08-10

Author

Jerry DeLisle

Commit

35dec12b401e1e99df7219542db057e59dbefd02

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
fortran
patch_id
—
commit_hash
35dec12b401e1e99df7219542db057e59dbefd02
source_type
github
headline
fortran: Fix ICE for IMAGE_INDEX with a TEAM argument [PR126777].
tldr
fortran: Fixes internal compiler error when using IMAGE_INDEX with a TEAM argument.
author
Jerry DeLisle
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • fortran
  • • compiler
  • • bugfix
  • • coarrays
discussion_id_link
—
bugzilla_pr
—
date
2026-08-10T00:00:00.000Z

A Fortran compiler internal error (ICE) related to the IMAGE_INDEX intrinsic function when used with a TEAM argument has been fixed. The issue arose because the TEAM argument was incorrectly processed as a descriptor, leading to an assertion failure in walk_coarray. The fix changes the argument conversion to use gfc_conv_expr_val, aligning it with how trans_num_images and trans_this_image handle similar arguments. A new test case verifies this correction.