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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to