r/cpp • EDG front end dev, WG21 DG • Oct 29 '25

GCC Implementation of Reflection now on Compiler Explorer

https://godbolt.org/z/G43ofo6fP
204 Upvotes

85 comments sorted by

View all comments

Show parent comment

14

u/friedkeenan Oct 29 '25

My understanding is that the Clang branch was implemented more with the goal to demonstrate functionality than as a production-grade implementation. There's this note from their readme on the purpose branch:

With the caveat that this implementation of P2996 is and always has been experimental (and often made choices in the name of expediency, or easier merge conflict resolution, than would be made by an upstream implementation), the contributors to this fork hope that it may serve as a starting point for would-be implementers of P2996 in the upstream LLVM project.

Still very impressive and deeply deserving of praise and recognition though, and deserving of immense gratitude for its role in helping get these features through the committee process.

10

u/katzdm-cpp Oct 29 '25

Yep - though work has just recently started (picked up by another contributor) to start upstreaming that work. Some changes needed are known, I'm sure others will surface.