[clang] [clang] Accept lambdas in C++03 as an extensions (PR #73376)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 27 06:47:48 PST 2023


================
@@ -3,8 +3,8 @@ extern groupshared float f;
 extern float groupshared f; // Ok, redeclaration?
 
 
-// NOTE:lambda is not enabled except for hlsl202x.
-// expected-error at +2 {{expected expression}}
+// expected-warning at +3 {{lambdas are a C++11 extension}}
+// expected-error at +2   {{expected body of lambda expression}}
----------------
AaronBallman wrote:

CC @llvm-beanz 

https://github.com/llvm/llvm-project/pull/73376


More information about the cfe-commits mailing list