Landing: 4edc3eedf0d2

Project / Subsystem

gcc / c++/reflection

Date

2026-04-17

Author

Marek Polacek

Commit

4edc3eedf0d2e91865272c1e693264ae6bbb3c6d

Source

github

Impact

4/10

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++/reflection
patch_id
commit_hash
4edc3eedf0d2e91865272c1e693264ae6bbb3c6d
source_type
github
headline
c++/reflection: splicing null reflection
tldr
The compiler now detects and handles splicing of null reflections in C++ reflection.
why_it_matters
Improves the robustness of C++ reflection by correctly handling null reflection cases.
author
Marek Polacek
impact_score
4
impact_rationale
Addresses a specific issue in C++ reflection, improving its robustness.
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • C++
  • reflection
  • bugfix
discussion_id_link
bugzilla_pr
date
2026-04-17T00:00:00.000Z

When splicing a null reflection, the compiler was printing a note indicating that the lang_type was not supported. This patch detects the splicing of a null reflection, which is represented by unknown_type_node, and handles it appropriately. A new test case has been added to verify the fix.