https://github.com/lijinpei-amd created 
https://github.com/llvm/llvm-project/pull/202276

Follow up of https://github.com/llvm/llvm-project/pull/200873

>From 9c85d94ef3e243709c4720fc31b0d03186163263 Mon Sep 17 00:00:00 2001
From: Li Jinpei <[email protected]>
Date: Mon, 8 Jun 2026 14:46:14 +0800
Subject: [PATCH] [Sema] Add original GH192264 reproducer as a section-conflict
 regression test

---
 clang/test/SemaCXX/attr-section.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/clang/test/SemaCXX/attr-section.cpp 
b/clang/test/SemaCXX/attr-section.cpp
index 95d4fc53ebe6c..f8ac9131f06ff 100644
--- a/clang/test/SemaCXX/attr-section.cpp
+++ b/clang/test/SemaCXX/attr-section.cpp
@@ -84,3 +84,11 @@ auto lambda = [](int val) 
__attribute__((section("lambda_op_pragma"))) { return
 #pragma clang section bss="lambda_op_pragma" // expected-error {{this causes a 
section type conflict with 'operator()'}}
 #pragma clang section bss=""
 } // namespace lambda_call_operator_pragma
+
+// original: https://github.com/llvm/llvm-project/issues/192264
+namespace GH192264_original {
+struct S {};
+using F = decltype([](auto val) // expected-note {{declared here}}
+__attribute__((section("gh192264"))) const S s{}; // expected-error {{expected 
body of lambda expression}}
+__attribute__((section("gh192264"))) int i{}; // expected-error {{'i' causes a 
section type conflict with 'operator()'}}
+} // namespace GH192264_original

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

Reply via email to