https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124926
Bug ID: 124926
Summary: Cannot reflect on dependent class template
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: katzdm at gmail dot com
Target Milestone: ---
It doesn't seem possible to take the reflection of a dependent class template.
That is, I believe that the following should be well-formed:
```cpp
template <typename>
struct Cls {
template <typename> struct Inner {};
};
template <typename T>
constexpr auto r = ^^Cls<T>::template Inner;
constexpr auto s = r<int>;
```
https://godbolt.org/z/YMhbbKKP1