Landing: 055a2eca6fe2

Project / Subsystem

gcc / c++/reflection

Date

2026-04-16

Author

Marek Polacek

Commit

055a2eca6fe2efed84b7287536cd144f789de66b

Source

github

Impact

5/10

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++/reflection
patch_id
commit_hash
055a2eca6fe2efed84b7287536cd144f789de66b
source_type
github
headline
c++/reflection: Tweak reflection_function_template_p
tldr
Improves C++ reflection by using a narrower type check for function templates.
why_it_matters
Refines the C++ reflection mechanism, potentially leading to more accurate and efficient reflection capabilities.
author
Marek Polacek
impact_score
5
impact_rationale
Refactoring of internal reflection mechanisms. Likely a bugfix of some sort, but probably narrow impact.
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • c++
  • reflection
  • compiler
discussion_id_link
bugzilla_pr
date
2026-04-16T00:00:00.000Z

This commit modifies the reflection_function_template_p function to use DECL_FUNCTION_TEMPLATE_P instead of really_overloaded_fn for a more precise check. It also adjusts the parameter type to const_tree and unwraps BASELINKs and OVERLOADs.