https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128610
Bug ID: 128610
Summary: [reflection] bogus "is private within this context"
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mpolacek at gcc dot gnu.org
Target Milestone: ---
```
#include <meta>
template <std::meta::info R>
constexpr auto grown_up_splice = extract<typename [: type_of(R) :] [:
parent_of(R) :]::*>(R);
class P { int v = 0; public: static constexpr auto rv = ^^v; };
P p;
auto f = p.*grown_up_splice<P::rv>;
```
results in error: 'int P::v' is private within this context
but it should likely work.