https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106026
--- Comment #3 from Andrew Pinski ---
Reduced to:
```
struct k {
template
auto operator()(CPO cpo, Args &&...args) const
-> decltype(tag_invoke(cpo, args...))
{
return tag_invoke(cpo, args...);
}
};
k j{};
struct nn {
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106026
--- Comment #2 from Andrew Pinski ---
Reducing ...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106026
--- Comment #1 from Luke Dalessandro ---
Actually, I take back the part about it being invalid code, I'm not sure it's
invalid. The godbolt link compiles on clang-14 without error.