Landing: a03b3ab4b0a6

Project / Subsystem

gcc / c++/modules

Date

2026-08-13

Author

Patrick Palka

Commit

a03b3ab4b0a6a446fe9a1d7e6e82967a8dd3edcf

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++/modules
patch_id
—
commit_hash
a03b3ab4b0a6a446fe9a1d7e6e82967a8dd3edcf
source_type
github
headline
C++ modules ICE fixed for GMF variables defined inline
tldr
Fixes an ICE in C++ modules when GMF variables are later defined inline.
author
Patrick Palka
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • c++
  • • modules
  • • compiler error
discussion_id_link
—
bugzilla_pr
—
date
2026-08-13T00:00:00.000Z

An internal compiler error (ICE) in GCC’s C++ modules feature has been fixed. The issue occurred when a redeclaration of a variable had language-specific data allocated, but the original declaration did not. This change ensures that language-specific data is correctly allocated using retrofit_lang_decl for such cases, resolving the ICE and improving module handling for inline definitions.