Landing: 4f751c0b7012

Project / Subsystem

gcc / c++

Date

2026-08-06

Author

Jakub Jelinek

Commit

4f751c0b701296bbeb63ff467c7c7e22a9075d19

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++
patch_id
—
commit_hash
4f751c0b701296bbeb63ff467c7c7e22a9075d19
source_type
github
headline
C++ name mangling corrected for type alias reflections.
tldr
Fixes a compiler ICE when mangling type aliases for reflection by using the correct name writing function.
author
Jakub Jelinek
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • c++
  • • compiler bug
  • • name mangling
discussion_id_link
—
bugzilla_pr
—
date
2026-08-06T00:00:00.000Z

This commit addresses an internal compiler error (ICE) related to C++ name mangling for type alias reflections. The issue occurred because the compiler was using an inappropriate function to write the name of a type alias that referred to an unnamed type. The fix ensures that the source name of the type alias itself is used for mangling, resolving the ICE and improving the handling of reflection for such constructs.