[clang] [clang] Accept lambdas in C++03 as an extensions (PR #73376)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 25 06:20:02 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}}
----------------
philnik777 wrote:
Should this work? I don't know much about HLSL, so I have no idea whether this is expected behaviour or a bug in my patch.
https://github.com/llvm/llvm-project/pull/73376
More information about the cfe-commits
mailing list