Landing: 0be038ed1edb
Project / Subsystem
gcc / c++
Date
2026-05-29
Author
Jakub Jelinek
Commit
0be038ed1edb1c289a3e59de1336d4cdef568671
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- c++
- patch_id
- —
- commit_hash
- 0be038ed1edb1c289a3e59de1336d4cdef568671
- source_type
- github
- headline
- C++: Fix build_value_init_noctor anon aggr handling
- tldr
- The C++ compiler now correctly initializes anonymous aggregates without default constructors, fixing a bootstrap failure.
- author
- Jakub Jelinek
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • c++
- • initialization
- • anonymous aggregate
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-29T00:00:00.000Z
This commit fixes a bootstrap failure in the C++ compiler related to the initialization of anonymous unions or structs that lack default constructors. The compiler now zero-initializes these anonymous aggregate members, resolving the issue that arose from attempting to call build_value_init on such types. This ensures correct initialization and allows the compiler to build successfully.