[PATCH] D22996: [cxx1z-constexpr-lambda] Implement constant evaluation of non-capturing lambda expressions.

Hubert Tong via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 7 15:43:35 PDT 2016


hubert.reinterpretcast added inline comments.

================
Comment at: lib/AST/ExprConstant.cpp:5775
@@ +5774,3 @@
+    Info.FFDiag(E, diag::note_unimplemented_constexpr_lambda_feature_ast)
+        << "can not evaluate lambda expressions with captures";
+    return false;
----------------
Minor nit: I think this should be "cannot".

================
Comment at: test/SemaCXX/cxx1z-constexpr-lambdas.cpp:10
@@ +9,3 @@
+#endif
+auto L = [] { };
+constexpr int foo(decltype(L) l) { return 0; }
----------------
Mark this `constexpr` as well?


Repository:
  rL LLVM

https://reviews.llvm.org/D22996





More information about the cfe-commits mailing list