Landing: 449a42185a6c

Project / Subsystem

gcc / gcc

Date

2026-05-21

Author

Thomas Koenig

Commit

449a42185a6cf304325d905544cecbbca8164284

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc
patch_id
commit_hash
449a42185a6cf304325d905544cecbbca8164284
source_type
github
headline
Fixes ICE with BIND(C) and PRIVATE in Fortran.
tldr
Fixes an internal compiler error in Fortran when using BIND(C) and PRIVATE attributes together, by improving symbol lookup for private entities.
author
Thomas Koenig
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • fortran
  • bugfix
  • interoperability
  • c binding
discussion_id_link
github:gcc-mirror/gcc#125379
bugzilla_pr
date
2026-05-21T00:00:00.000Z

A recent change caused an internal compiler error in Fortran when using BIND(C) and PRIVATE attributes together. The compiler was unable to find symbols for private entities within a gsymbol’s namespace. This commit resolves the issue by iterating over all symbols to find the correct name when a direct lookup fails if the entity is private. This restores expected behavior.