zyn0217 wrote: > ``` > static_assert(requires(this int) { true; }); > ```
The grammar doesn't appear to disallow the explicit object parameter in a requires expression, see https://eel.is/c++draft/expr.prim.req#nt:requirement-parameter-list. But the usage is indeed suspicious to me. We probably need a CWG issue? @cor3ntin @mizvekov https://github.com/llvm/llvm-project/pull/109831 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits