Landing: 0b533aa54d37
Project / Subsystem
gcc / c++
Date
2026-07-03
Author
Jakub Jelinek
Commit
0b533aa54d375d22a34cf34e6b35c75a317d65d3
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- c++
- patch_id
- —
- commit_hash
- 0b533aa54d375d22a34cf34e6b35c75a317d65d3
- source_type
- github
- headline
- c++: Fix structured binding mangling during error recovery [PR126057]
- tldr
- Compiler fix prevents internal compiler errors during error recovery when mangling structured bindings.
- author
- Jakub Jelinek
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • c++
- • compiler-error
- • structured-bindings
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-03T00:00:00.000Z
This commit addresses an internal compiler error (ICE) that occurred during error recovery when mangling structured bindings. Previously, if a structured binding declaration had errors, its mangling could fail. The fix ensures that in error recovery scenarios, the assembler name is set to <decomp>, preventing mangling for erroneous static block-scope structured bindings and during instantiation when tsubst_decomp_names fails.