================
@@ -242,5 +545,187 @@ Sema::ComputeExpansionSize(CXXExpansionStmtPattern 
*Expansion) {
         ->getRangeExpr()
         ->getNumInits();
 
+  // CWG 3131: N is the result of evaluating the expression
+  //
+  // [&] consteval {
+  //    std::ptrdiff_t result = 0;
+  //    auto b = begin-expr;
+  //    auto e = end-expr;
+  //    for (; b != e; ++b) ++result;
+  //    return result;
+  // }()
----------------
Sirraide wrote:

Unfortunately not: consteval reuse the lambda parsing code... but we have no 
parser here

https://github.com/llvm/llvm-project/pull/169684
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to