[clang] [Clang] Fix crashes in coroutine pack expansions (PR #237969)
Kunal Dubey via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 2 08:50:28 PST 2026
================
@@ -0,0 +1,15 @@
+// RUN: %clang_cc1 -std=gnu++17 -fsyntax-only -verify %s
+
+template <typename... T>
+void conditionalPack(T... Values) {
+ ((void)(Values ?: 0), ...);
+}
+
+template void conditionalPack<int, int, int>(int, int, int);
----------------
xakep8 wrote:
Yes, I just kept the negative test for my own sake as I was working on another issue when this surfaced, I'll keep the test short.
https://github.com/llvm/llvm-project/pull/237969
More information about the cfe-commits
mailing list