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

Chris B via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 1 07:53:10 PST 2024


================
@@ -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}}
----------------
llvm-beanz wrote:

Oof... So sorry for my delay in responding here. I think there is going to be some challenge in making this work for HLSL, but I'm actually okay with you making that my problem.

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


More information about the cfe-commits mailing list