[clang] [Clang] Emit error for duplicate mangled names within a lambda (PR #107581)
Kerry McLaughlin via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 17 08:22:58 PDT 2024
================
@@ -0,0 +1,31 @@
+// REQUIRES: aarch64-registered-target
+
+// RUN: %clang_cc1 -triple aarch64 -emit-llvm -o - %s -verify -DTEST1
+// RUN: %clang_cc1 -triple aarch64 -target-feature +sme -target-feature +sme2 -emit-llvm -o - %s -verify -DTEST2
----------------
kmclaughlin-arm wrote:
I've removed the ifdefs & renamed this to `lambda-instantiation-mangling-conflicts.cpp` as it was a bit shorter, but I can rename to `lambda-instantiation-require-different-mangled-names.cpp` if preferred.
https://github.com/llvm/llvm-project/pull/107581
More information about the cfe-commits
mailing list