[clang] [clang][Sema] support block pointers as non-type template parameters (PR #191694)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 15 13:50:36 PDT 2026


================
@@ -0,0 +1,70 @@
+// RUN: %clang_cc1 -std=c++20 -fblocks -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
+
+template<void (^B)()> void f() {}
+
+void test_literal() {
+  // CHECK: call void @_Z1fIXcvU13block_pointerFvvEadUb_EEvv()
----------------
efriedma-quic wrote:

What's the linkage of this symbol?  (If it's not "internal", that's going to cause issues.)

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


More information about the cfe-commits mailing list