jyknight wrote:

Can reduce further to:
```
template <typename T>
concept h = requires(T i) { [] {}(i); };
template <typename T> struct k;
template <h m> struct k<m> {
  struct n;
};
using o = k<int>::n;
```

But, is `requires(T i) { [] {}(i); };` actually valid? I think that _should_ 
fail the requirement, since you cannot call that lambda with an argument? Maybe 
that's just an artifact of the reduction?

https://github.com/llvm/llvm-project/pull/83997
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to