Landing: 2a1281094934
Project / Subsystem
gcc / c++/parser
Date
2026-07-31
Author
Jason Merrill
Commit
2a128109493455c4812d2b370327640dd62d29c0
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- c++/parser
- patch_id
- —
- commit_hash
- 2a128109493455c4812d2b370327640dd62d29c0
- source_type
- github
- headline
- C++: Defer parsing of initializer lists in complete class contexts.
- tldr
- C++ parser now defers init-list parsing in complete class contexts to fix bug PR126481.
- author
- Jason Merrill
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • c++
- • parser
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-31T00:00:00.000Z
The C++ parser defers parsing of initializer lists ({}) when they appear in a complete class context. Previously, the parser incorrectly assumed that only ‘this’ usage and name lookup could necessitate deferred parsing in such scenarios. This change corrects that assumption, resolving a bug where init-lists caused parsing issues.