Landing: de3a3064f65b

Project / Subsystem

gcc / c++/reflection

Date

2026-05-12

Author

Marek Polacek

Commit

de3a3064f65bb52053d771fa44fb982e8ec80727

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++/reflection
patch_id
commit_hash
de3a3064f65bb52053d771fa44fb982e8ec80727
source_type
github
headline
c++/reflection: overzealous complete_type in consteval_only_p [PR125280]
tldr
The commit fixes a bogus "has incomplete type" error in C++ reflection by removing an unnecessary `complete_type` call.
author
Marek Polacek
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • c++
  • reflection
  • bugfix
discussion_id_link
bugzilla_pr
date
2026-05-12T00:00:00.000Z

This commit resolves a false positive “has incomplete type” error in the C++ reflection implementation. The error occurred because complete_type was being called prematurely. The fix involves removing this call which aligns the behavior with Clang.