Landing: e65b3092ce07

Project / Subsystem

gcc / c++/reflection

Date

2026-09-11

Author

Marek Polacek

Commit

e65b3092ce078418632186b7d67c3e443f6657fd

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++/reflection
patch_id
—
commit_hash
e65b3092ce078418632186b7d67c3e443f6657fd
source_type
github
headline
c++/reflection: Fix ICE with namespace splice scopes in namespace aliases.
tldr
Fixes an Internal Compiler Error (ICE) when using C++ reflection with namespace splice scopes inside namespace aliases.
author
Marek Polacek
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • c++
  • • compiler
  • • reflection
  • • bugfix
discussion_id_link
—
bugzilla_pr
—
date
2026-09-11T00:00:00.000Z

This commit resolves an Internal Compiler Error (ICE) occurring in C++ reflection when using namespace splice scopes within a namespace alias. The compiler previously crashed because it expected a type but received a namespace declaration due to an incorrect handling of SPLICE_EXPR. The fix involves constructing a SPLICE_SCOPE type when processing dependent namespaces, ensuring correct type handling.