Landing: f4de514436b4

Project / Subsystem

gcc / c++/reflection

Date

2026-04-20

Author

Marek Polacek

Commit

f4de514436b4c534f27b3bcfe6a581ad60db85c8

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++/reflection
patch_id
commit_hash
f4de514436b4c534f27b3bcfe6a581ad60db85c8
source_type
github
headline
Improve diagnostic messages for dependent C++ splices.
tldr
This commit improves error messages for dependent splices in C++ reflection, providing more helpful diagnostics to developers.
author
Marek Polacek
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • c++
  • reflection
  • diagnostics
discussion_id_link
bugzilla_pr
date
2026-04-20T00:00:00.000Z

This patch improves the diagnostic messages emitted when encountering dependent splices in C++ reflection. The error messages are reworded to be more informative, specifically indicating that a reflection is expected. Additionally, it updates the inform_tree_category function to handle concepts and alias templates, providing more context in error messages.