Landing: 6d3cc093428e
Project / Subsystem
gcc / c++
Date
2026-09-01
Author
Lunex
Commit
6d3cc093428e42e0b04f53040f43f9ca1c6f9acb
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- c++
- patch_id
- —
- commit_hash
- 6d3cc093428e42e0b04f53040f43f9ca1c6f9acb
- source_type
- github
- headline
- C++ class template instantiation needs enclosing scope for base clauses.
- tldr
- Fixes nested class template instantiation to correctly look up members in the enclosing scope for base class clauses.
- author
- Lunex
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • c++
- • templates
- • compiler
- discussion_id_link
- github:gcc-mirror/gcc#82613
- bugzilla_pr
- —
- date
- 2026-09-01T00:00:00.000Z
When instantiating nested class templates, the compiler needs to look up members in the enclosing scope when processing base class clauses. A recent change removed scope handling around base clause substitution, which broke lookups for using-declarations. This commit restores the correct scope handling to ensure members from the enclosing class are properly brought into scope during nested class instantiation, fixing PR 82613.