[PATCH] D99489: [clang] [PR49736] [C++2b] Correctly reject lambdas with requires clause and no parameter list

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 30 04:43:04 PDT 2021


aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.

LGTM aside from the test case commenting nit. Thank you!



================
Comment at: clang/test/Parser/cxx2a-template-lambdas.cpp:17
+#if __cplusplus <= 202002L
+// expected-warning at -2 {{is a C++2b extension}}
+#endif
----------------
Please spell out the full diagnostic wording in this instance.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99489/new/

https://reviews.llvm.org/D99489



More information about the cfe-commits mailing list