Landing: 24754ac26299
Project / Subsystem
gcc / c++
Date
2026-08-06
Author
Jakub Jelinek
Commit
24754ac2629968fba1681ba51a96ed5bfd51546f
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- c++
- patch_id
- —
- commit_hash
- 24754ac2629968fba1681ba51a96ed5bfd51546f
- source_type
- github
- headline
- Fix mangling for empty unnamed anonymous unions/structs.
- tldr
- Correctly mangles empty anonymous unions or structs as unnamed data members.
- author
- Jakub Jelinek
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • c++
- • compiler
- • bugfix
- • mangling
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-06T00:00:00.000Z
This commit fixes an internal compiler error (ICE) that occurred when mangling empty anonymous unions or structs used as non-static data members. Previously, the mangling process failed because it expected a name for these constructs. The fix introduces a new mangling scheme, using an index instead of a name, similar to how unnamed bitfields are handled. This ensures correct name mangling for these C++ constructs, resolving bug PR125541.