https://github.com/jansvoboda11 created 
https://github.com/llvm/llvm-project/pull/190615

None

>From 09b035748d20c7d089fdea825493ffd198ac2381 Mon Sep 17 00:00:00 2001
From: Jan Svoboda <[email protected]>
Date: Mon, 6 Apr 2026 08:13:11 -0700
Subject: [PATCH] [clang] Avoid sandbox violation in Windows signal handler

---
 clang/test/SemaCXX/windows_sandbox_violtion.cpp | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 clang/test/SemaCXX/windows_sandbox_violtion.cpp

diff --git a/clang/test/SemaCXX/windows_sandbox_violtion.cpp 
b/clang/test/SemaCXX/windows_sandbox_violtion.cpp
new file mode 100644
index 0000000000000..60daa99e5a3a3
--- /dev/null
+++ b/clang/test/SemaCXX/windows_sandbox_violtion.cpp
@@ -0,0 +1,10 @@
+// RUN: %clang -std=c++17 -fsyntax-only %s
+
+template <class... Ts>
+auto f{[] (auto... a0) {
+  return [=] (Ts... a1) {
+    (..., [a0Cap{a0}, a1] { return a0Cap + a1; });
+  };
+}};
+
+auto g{f<int>};

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to